@@ -991,6 +991,7 @@ class StreamMessageRecipientHeader extends StatelessWidget {
991
991
// https://www.figma.com/file/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=538%3A20849&mode=dev
992
992
// https://github.com/zulip/zulip-mobile/issues/5511
993
993
final store = PerAccountStoreWidget .of (context);
994
+ final designVariables = DesignVariables .of (context);
994
995
995
996
final topic = message.topic;
996
997
@@ -1064,11 +1065,23 @@ class StreamMessageRecipientHeader extends StatelessWidget {
1064
1065
Expanded (
1065
1066
child: Padding (
1066
1067
padding: const EdgeInsets .symmetric (vertical: 11 ),
1067
- child: Text (topic,
1068
- // TODO: Give a way to see the whole topic (maybe a
1069
- // long-press interaction?)
1070
- overflow: TextOverflow .ellipsis,
1071
- style: recipientHeaderTextStyle (context)))),
1068
+ child: Row (
1069
+ children: [
1070
+ Flexible (
1071
+ child: Text (topic,
1072
+ // TODO: Give a way to see the whole topic (maybe a
1073
+ // long-press interaction?)
1074
+ overflow: TextOverflow .ellipsis,
1075
+ style: recipientHeaderTextStyle (context))),
1076
+ Container (
1077
+ width: 20 ,
1078
+ padding: const EdgeInsetsDirectional .only (start: 4 ),
1079
+ // TODO(design): Choose an color for the icon
1080
+ child: Icon (size: 14 , color: designVariables.atMentionMarker,
1081
+ // A null [Icon.icon] makes a blank space.
1082
+ iconDataForTopicVisibilityPolicy (
1083
+ store.topicVisibilityPolicy (message.streamId, topic)))),
1084
+ ]))),
1072
1085
// TODO topic links?
1073
1086
// Then web also has edit/resolve/mute buttons. Skip those for mobile.
1074
1087
RecipientHeaderDate (message: message),
0 commit comments