Skip to content

Commit 2dda626

Browse files
chrisbobbegnprice
authored andcommitted
msglist [nfc]: Use more concise WidgetStatePropertyAll
1 parent ba82907 commit 2dda626

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/widgets/message_list.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,8 @@ class _MarkAsReadWidgetState extends State<MarkAsReadWidget> {
757757
// Give the buttons a constant color regardless of whether their
758758
// state is disabled, pressed, etc. We handle those states
759759
// separately, via MarkAsReadAnimation.
760-
foregroundColor: WidgetStateColor.resolveWith((_) => Colors.white),
761-
backgroundColor: WidgetStateColor.resolveWith((_) => messageListTheme.unreadMarker),
760+
foregroundColor: const WidgetStatePropertyAll(Colors.white),
761+
backgroundColor: WidgetStatePropertyAll(messageListTheme.unreadMarker),
762762
),
763763
onPressed: _loading ? null : () => _handlePress(context),
764764
icon: const Icon(Icons.playlist_add_check),

0 commit comments

Comments
 (0)