@@ -291,7 +291,7 @@ abstract class _HeaderItem extends StatelessWidget {
291
291
overflow: TextOverflow .ellipsis,
292
292
title))),
293
293
const SizedBox (width: 12 ),
294
- if (hasMention) const _AtMentionMarker ( ),
294
+ if (hasMention) const _IconMarker (icon : ZulipIcons .at_sign ),
295
295
Padding (padding: const EdgeInsetsDirectional .only (end: 16 ),
296
296
child: UnreadCountBadge (
297
297
backgroundColor: unreadCountBadgeBackgroundColor (context),
@@ -414,7 +414,7 @@ class _DmItem extends StatelessWidget {
414
414
overflow: TextOverflow .ellipsis,
415
415
title))),
416
416
const SizedBox (width: 12 ),
417
- if (hasMention) const _AtMentionMarker ( ),
417
+ if (hasMention) const _IconMarker (icon : ZulipIcons .at_sign ),
418
418
Padding (padding: const EdgeInsetsDirectional .only (end: 16 ),
419
419
child: UnreadCountBadge (backgroundColor: null ,
420
420
count: count)),
@@ -539,7 +539,7 @@ class _TopicItem extends StatelessWidget {
539
539
overflow: TextOverflow .ellipsis,
540
540
topic))),
541
541
const SizedBox (width: 12 ),
542
- if (hasMention) const _AtMentionMarker ( ),
542
+ if (hasMention) const _IconMarker (icon : ZulipIcons .at_sign ),
543
543
Padding (padding: const EdgeInsetsDirectional .only (end: 16 ),
544
544
child: UnreadCountBadge (
545
545
backgroundColor: colorSwatchFor (context, subscription),
@@ -548,8 +548,10 @@ class _TopicItem extends StatelessWidget {
548
548
}
549
549
}
550
550
551
- class _AtMentionMarker extends StatelessWidget {
552
- const _AtMentionMarker ();
551
+ class _IconMarker extends StatelessWidget {
552
+ const _IconMarker ({required this .icon});
553
+
554
+ final IconData icon;
553
555
554
556
@override
555
557
Widget build (BuildContext context) {
@@ -558,6 +560,6 @@ class _AtMentionMarker extends StatelessWidget {
558
560
// https://www.figma.com/file/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?type=design&node-id=224-16386&mode=design&t=JsNndFQ8fKFH0SjS-0
559
561
return Padding (
560
562
padding: const EdgeInsetsDirectional .only (end: 4 ),
561
- child: Icon (ZulipIcons .at_sign , size: 14 , color: designVariables.atMentionMarker));
563
+ child: Icon (icon , size: 14 , color: designVariables.atMentionMarker));
562
564
}
563
565
}
0 commit comments