@@ -282,7 +282,7 @@ abstract class _HeaderItem extends StatelessWidget {
282
282
overflow: TextOverflow .ellipsis,
283
283
title))),
284
284
const SizedBox (width: 12 ),
285
- if (hasMention) const _AtMentionMarker (),
285
+ if (hasMention) const AtMentionMarker (),
286
286
Padding (padding: const EdgeInsetsDirectional .only (end: 16 ),
287
287
child: UnreadCountBadge (
288
288
backgroundColor: unreadCountBadgeBackgroundColor (context),
@@ -405,7 +405,7 @@ class _DmItem extends StatelessWidget {
405
405
overflow: TextOverflow .ellipsis,
406
406
title))),
407
407
const SizedBox (width: 12 ),
408
- if (hasMention) const _AtMentionMarker (),
408
+ if (hasMention) const AtMentionMarker (),
409
409
Padding (padding: const EdgeInsetsDirectional .only (end: 16 ),
410
410
child: UnreadCountBadge (backgroundColor: null ,
411
411
count: count)),
@@ -530,25 +530,11 @@ class _TopicItem extends StatelessWidget {
530
530
overflow: TextOverflow .ellipsis,
531
531
topic))),
532
532
const SizedBox (width: 12 ),
533
- if (hasMention) const _AtMentionMarker (),
533
+ if (hasMention) const AtMentionMarker (),
534
534
Padding (padding: const EdgeInsetsDirectional .only (end: 16 ),
535
535
child: UnreadCountBadge (
536
536
backgroundColor: colorSwatchFor (context, subscription),
537
537
count: count)),
538
538
]))));
539
539
}
540
540
}
541
-
542
- class _AtMentionMarker extends StatelessWidget {
543
- const _AtMentionMarker ();
544
-
545
- @override
546
- Widget build (BuildContext context) {
547
- final designVariables = DesignVariables .of (context);
548
- // Design for at-mention marker based on Figma screen:
549
- // https://www.figma.com/file/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?type=design&node-id=224-16386&mode=design&t=JsNndFQ8fKFH0SjS-0
550
- return Padding (
551
- padding: const EdgeInsetsDirectional .only (end: 4 ),
552
- child: Icon (ZulipIcons .at_sign, size: 14 , color: designVariables.atMentionMarker));
553
- }
554
- }
0 commit comments