Skip to content

Commit 71b4135

Browse files
committed
msglist [nfc]: Simplify a variable into a const
1 parent b57c139 commit 71b4135

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/widgets/message_list.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,16 +656,14 @@ class StreamMessageRecipientHeader extends StatelessWidget {
656656

657657
final subscription = store.subscriptions[message.streamId];
658658
final Color backgroundColor;
659-
final Color contrastingColor;
659+
const contrastingColor = Colors.black;
660660
final Color iconColor;
661661
if (subscription != null) {
662662
final swatch = subscription.colorSwatch();
663663
backgroundColor = swatch.barBackground;
664-
contrastingColor = Colors.black;
665664
iconColor = swatch.iconOnBarBackground;
666665
} else {
667666
backgroundColor = _kUnsubscribedStreamRecipientHeaderColor;
668-
contrastingColor = Colors.black;
669667
iconColor = Colors.black;
670668
}
671669
final textStyle = TextStyle(

0 commit comments

Comments
 (0)