From 4e6aebca68e94274db152967eb1e491ef96bd181 Mon Sep 17 00:00:00 2001 From: Feichtmeier Date: Thu, 29 Aug 2024 21:51:31 +0200 Subject: [PATCH] fix: IconTheme color --- lib/src/theme.dart | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/src/theme.dart b/lib/src/theme.dart index d26d858..3b8983a 100644 --- a/lib/src/theme.dart +++ b/lib/src/theme.dart @@ -54,7 +54,12 @@ ThemeData _phoenixTheme({ Size(buttonHeight ?? _kButtonHeight, buttonHeight ?? _kButtonHeight); return ThemeData( - iconTheme: isMobile ? null : const IconThemeData(size: 20), + iconTheme: isMobile + ? null + : IconThemeData( + size: 20, + color: colorScheme.onSurface, + ), colorScheme: colorScheme, scaffoldBackgroundColor: colorScheme.surface, splashFactory: NoSplash.splashFactory, @@ -76,12 +81,12 @@ ThemeData _phoenixTheme({ buttonShape: buttonShape, buttonSize: buttonSize, ), - outlinedButtonTheme: _outlinedButtonThemeData( + outlinedButtonTheme: _outlinedButtonTheme( colorScheme: colorScheme, buttonShape: buttonShape, buttonSize: buttonSize, ), - filledButtonTheme: _filledButtonThemeData( + filledButtonTheme: _filledButtonTheme( colorScheme: colorScheme, buttonShape: buttonShape, buttonSize: buttonSize, @@ -389,7 +394,7 @@ ElevatedButtonThemeData _elevatedButtonTheme({ ); } -OutlinedButtonThemeData _outlinedButtonThemeData({ +OutlinedButtonThemeData _outlinedButtonTheme({ required ColorScheme colorScheme, required Size buttonSize, required RoundedRectangleBorder buttonShape, @@ -406,7 +411,7 @@ OutlinedButtonThemeData _outlinedButtonThemeData({ ); } -FilledButtonThemeData _filledButtonThemeData({ +FilledButtonThemeData _filledButtonTheme({ required ColorScheme colorScheme, required Size buttonSize, required RoundedRectangleBorder buttonShape,