@@ -222,7 +222,7 @@ abstract class _HeaderItem extends StatelessWidget {
222
222
final _InboxPageState pageState;
223
223
final int count;
224
224
final bool hasMention;
225
-
225
+ final bool isArchived;
226
226
/// A build context within the [_StreamSection] or [_AllDmsSection] .
227
227
///
228
228
/// Used to ensure the [_StreamSection] or [_AllDmsSection] that encloses the
@@ -236,6 +236,7 @@ abstract class _HeaderItem extends StatelessWidget {
236
236
required this .count,
237
237
required this .hasMention,
238
238
required this .sectionContext,
239
+ this .isArchived = false ,
239
240
});
240
241
241
242
String title (ZulipLocalizations zulipLocalizations);
@@ -284,16 +285,33 @@ abstract class _HeaderItem extends StatelessWidget {
284
285
const SizedBox (width: 5 ),
285
286
Expanded (child: Padding (
286
287
padding: const EdgeInsets .symmetric (vertical: 4 ),
287
- child: Text (
288
- style: TextStyle (
289
- fontSize: 17 ,
290
- height: (20 / 17 ),
291
- // TODO(design) check if this is the right variable
292
- color: designVariables.labelMenuButton,
293
- ).merge (weightVariableTextStyle (context, wght: 600 )),
288
+ child: RichText (
294
289
maxLines: 1 ,
295
290
overflow: TextOverflow .ellipsis,
296
- title (zulipLocalizations)))),
291
+ text: TextSpan (
292
+ children: [
293
+ TextSpan (
294
+ text: title (zulipLocalizations),
295
+ style: TextStyle (
296
+ fontSize: 17 ,
297
+ height: (20 / 17 ),
298
+ color: designVariables.labelMenuButton,
299
+ ).merge (weightVariableTextStyle (context, wght: 600 )),
300
+ ),
301
+ if (isArchived)
302
+ TextSpan (
303
+ text: ' ${zulipLocalizations .channelArchivedLabel }' ,
304
+ style: TextStyle (
305
+ fontSize: 17 ,
306
+ height: (20 / 17 ),
307
+ color: MessageListTheme .of (context).streamRecipientHeaderChevronRight,
308
+ fontStyle: FontStyle .italic,
309
+ ),
310
+ ),
311
+ ],
312
+ ),
313
+ ),
314
+ )),
297
315
const SizedBox (width: 12 ),
298
316
if (hasMention) const _IconMarker (icon: ZulipIcons .at_sign),
299
317
Padding (padding: const EdgeInsetsDirectional .only (end: 16 ),
@@ -441,6 +459,7 @@ class _StreamHeaderItem extends _HeaderItem {
441
459
required super .count,
442
460
required super .hasMention,
443
461
required super .sectionContext,
462
+ required super .isArchived,
444
463
});
445
464
446
465
@override String title (ZulipLocalizations zulipLocalizations) =>
@@ -487,6 +506,7 @@ class _StreamSection extends StatelessWidget {
487
506
collapsed: collapsed,
488
507
pageState: pageState,
489
508
sectionContext: context,
509
+ isArchived: subscription.isArchived,
490
510
);
491
511
return StickyHeaderItem (
492
512
header: header,
0 commit comments