Skip to content

Commit

Permalink
fix: IconTheme color
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed Aug 29, 2024
1 parent 2f9cf4d commit 4e6aebc
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions lib/src/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -389,7 +394,7 @@ ElevatedButtonThemeData _elevatedButtonTheme({
);
}

OutlinedButtonThemeData _outlinedButtonThemeData({
OutlinedButtonThemeData _outlinedButtonTheme({
required ColorScheme colorScheme,
required Size buttonSize,
required RoundedRectangleBorder buttonShape,
Expand All @@ -406,7 +411,7 @@ OutlinedButtonThemeData _outlinedButtonThemeData({
);
}

FilledButtonThemeData _filledButtonThemeData({
FilledButtonThemeData _filledButtonTheme({
required ColorScheme colorScheme,
required Size buttonSize,
required RoundedRectangleBorder buttonShape,
Expand Down

0 comments on commit 4e6aebc

Please sign in to comment.