We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba82907 commit 2dda626Copy full SHA for 2dda626
lib/widgets/message_list.dart
@@ -757,8 +757,8 @@ class _MarkAsReadWidgetState extends State<MarkAsReadWidget> {
757
// Give the buttons a constant color regardless of whether their
758
// state is disabled, pressed, etc. We handle those states
759
// separately, via MarkAsReadAnimation.
760
- foregroundColor: WidgetStateColor.resolveWith((_) => Colors.white),
761
- backgroundColor: WidgetStateColor.resolveWith((_) => messageListTheme.unreadMarker),
+ foregroundColor: const WidgetStatePropertyAll(Colors.white),
+ backgroundColor: WidgetStatePropertyAll(messageListTheme.unreadMarker),
762
),
763
onPressed: _loading ? null : () => _handlePress(context),
764
icon: const Icon(Icons.playlist_add_check),
0 commit comments