@@ -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
@@ -1093,11 +1094,21 @@ class StreamMessageRecipientHeader extends StatelessWidget {
1093
1094
Expanded (
1094
1095
child: Padding (
1095
1096
padding: const EdgeInsets .symmetric (vertical: 11 ),
1096
- child: Text (topic,
1097
- // TODO: Give a way to see the whole topic (maybe a
1098
- // long-press interaction?)
1099
- overflow: TextOverflow .ellipsis,
1100
- style: recipientHeaderTextStyle (context)))),
1097
+ child: Row (
1098
+ children: [
1099
+ Flexible (
1100
+ child: Text (topic,
1101
+ // TODO: Give a way to see the whole topic (maybe a
1102
+ // long-press interaction?)
1103
+ overflow: TextOverflow .ellipsis,
1104
+ style: recipientHeaderTextStyle (context))),
1105
+ const SizedBox (width: 4 ),
1106
+ // TODO(design) copies the recipient header in web; is there a better color?
1107
+ Icon (size: 14 , color: designVariables.colorMessageHeaderIconInteractive,
1108
+ // A null [Icon.icon] makes a blank space.
1109
+ iconDataForTopicVisibilityPolicy (
1110
+ store.topicVisibilityPolicy (message.streamId, topic))),
1111
+ ]))),
1101
1112
// TODO topic links?
1102
1113
// Then web also has edit/resolve/mute buttons. Skip those for mobile.
1103
1114
RecipientHeaderDate (message: message),
0 commit comments