@@ -1020,6 +1020,7 @@ class StreamMessageRecipientHeader extends StatelessWidget {
1020
1020
// https://www.figma.com/file/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=538%3A20849&mode=dev
1021
1021
// https://github.com/zulip/zulip-mobile/issues/5511
1022
1022
final store = PerAccountStoreWidget .of (context);
1023
+ final designVariables = DesignVariables .of (context);
1023
1024
1024
1025
final topic = message.topic;
1025
1026
@@ -1081,11 +1082,21 @@ class StreamMessageRecipientHeader extends StatelessWidget {
1081
1082
1082
1083
final topicWidget = Padding (
1083
1084
padding: const EdgeInsets .symmetric (vertical: 11 ),
1084
- child: Text (topic,
1085
- // TODO: Give a way to see the whole topic (maybe a
1086
- // long-press interaction?)
1087
- overflow: TextOverflow .ellipsis,
1088
- style: recipientHeaderTextStyle (context)));
1085
+ child: Row (
1086
+ children: [
1087
+ Flexible (
1088
+ child: Text (topic,
1089
+ // TODO: Give a way to see the whole topic (maybe a
1090
+ // long-press interaction?)
1091
+ overflow: TextOverflow .ellipsis,
1092
+ style: recipientHeaderTextStyle (context))),
1093
+ const SizedBox (width: 4 ),
1094
+ // TODO(design) copies the recipient header in web; is there a better color?
1095
+ Icon (size: 14 , color: designVariables.colorMessageHeaderIconInteractive,
1096
+ // A null [Icon.icon] makes a blank space.
1097
+ iconDataForTopicVisibilityPolicy (
1098
+ store.topicVisibilityPolicy (message.streamId, topic))),
1099
+ ]));
1089
1100
1090
1101
return GestureDetector (
1091
1102
onTap: () => Navigator .push (context,
0 commit comments