From a40a697dd9df9cbbc135d99ac95ba78705e500a3 Mon Sep 17 00:00:00 2001 From: monsieurtanuki Date: Sun, 27 Oct 2024 08:53:23 +0100 Subject: [PATCH] fix: material 3 / elevatedbutton --- packages/smooth_app/lib/themes/smooth_theme.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/smooth_app/lib/themes/smooth_theme.dart b/packages/smooth_app/lib/themes/smooth_theme.dart index dabc6bb5d32..771cb1fe161 100644 --- a/packages/smooth_app/lib/themes/smooth_theme.dart +++ b/packages/smooth_app/lib/themes/smooth_theme.dart @@ -69,6 +69,11 @@ class SmoothTheme { ? Colors.grey : myColorScheme.primary, ), + foregroundColor: WidgetStateProperty.resolveWith( + (Set states) => states.contains(WidgetState.disabled) + ? Colors.white + : myColorScheme.onPrimary, + ), ), ), floatingActionButtonTheme: FloatingActionButtonThemeData(