Skip to content

Commit 6abafdd

Browse files
committed
msglist [nfc]: Inline a variable
1 parent ee57be0 commit 6abafdd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/widgets/message_list.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -656,20 +656,17 @@ class StreamMessageRecipientHeader extends StatelessWidget {
656656

657657
final subscription = store.subscriptions[message.streamId];
658658
final Color backgroundColor;
659-
final Color contrastingColor;
660659
final Color iconColor;
661660
if (subscription != null) {
662661
final swatch = subscription.colorSwatch();
663662
backgroundColor = swatch.barBackground;
664-
contrastingColor = Colors.black;
665663
iconColor = swatch.iconOnBarBackground;
666664
} else {
667665
backgroundColor = _kUnsubscribedStreamRecipientHeaderColor;
668-
contrastingColor = Colors.black;
669666
iconColor = Colors.black;
670667
}
671668
final textStyle = TextStyle(
672-
color: contrastingColor,
669+
color: Colors.black,
673670
fontSize: 16,
674671
letterSpacing: proportionalLetterSpacing(context, 0.02, baseFontSize: 16),
675672
height: (18 / 16),
@@ -710,7 +707,7 @@ class StreamMessageRecipientHeader extends StatelessWidget {
710707
// Icon is 16px wide here so horizontal padding is 1px.
711708
padding: const EdgeInsets.symmetric(horizontal: 1),
712709
child: Icon(size: 16,
713-
color: contrastingColor.withOpacity(0.6),
710+
color: Colors.black.withOpacity(0.6),
714711
ZulipIcons.chevron_right)),
715712
]));
716713
}
@@ -737,7 +734,7 @@ class StreamMessageRecipientHeader extends StatelessWidget {
737734
// TODO topic links?
738735
// Then web also has edit/resolve/mute buttons. Skip those for mobile.
739736
RecipientHeaderDate(message: message,
740-
color: contrastingColor.withOpacity(0.4)),
737+
color: Colors.black.withOpacity(0.4)),
741738
])));
742739
}
743740
}

0 commit comments

Comments
 (0)