Skip to content

Commit 4e6aebc

Browse files
committed
fix: IconTheme color
1 parent 2f9cf4d commit 4e6aebc

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

lib/src/theme.dart

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ ThemeData _phoenixTheme({
5454
Size(buttonHeight ?? _kButtonHeight, buttonHeight ?? _kButtonHeight);
5555

5656
return ThemeData(
57-
iconTheme: isMobile ? null : const IconThemeData(size: 20),
57+
iconTheme: isMobile
58+
? null
59+
: IconThemeData(
60+
size: 20,
61+
color: colorScheme.onSurface,
62+
),
5863
colorScheme: colorScheme,
5964
scaffoldBackgroundColor: colorScheme.surface,
6065
splashFactory: NoSplash.splashFactory,
@@ -76,12 +81,12 @@ ThemeData _phoenixTheme({
7681
buttonShape: buttonShape,
7782
buttonSize: buttonSize,
7883
),
79-
outlinedButtonTheme: _outlinedButtonThemeData(
84+
outlinedButtonTheme: _outlinedButtonTheme(
8085
colorScheme: colorScheme,
8186
buttonShape: buttonShape,
8287
buttonSize: buttonSize,
8388
),
84-
filledButtonTheme: _filledButtonThemeData(
89+
filledButtonTheme: _filledButtonTheme(
8590
colorScheme: colorScheme,
8691
buttonShape: buttonShape,
8792
buttonSize: buttonSize,
@@ -389,7 +394,7 @@ ElevatedButtonThemeData _elevatedButtonTheme({
389394
);
390395
}
391396

392-
OutlinedButtonThemeData _outlinedButtonThemeData({
397+
OutlinedButtonThemeData _outlinedButtonTheme({
393398
required ColorScheme colorScheme,
394399
required Size buttonSize,
395400
required RoundedRectangleBorder buttonShape,
@@ -406,7 +411,7 @@ OutlinedButtonThemeData _outlinedButtonThemeData({
406411
);
407412
}
408413

409-
FilledButtonThemeData _filledButtonThemeData({
414+
FilledButtonThemeData _filledButtonTheme({
410415
required ColorScheme colorScheme,
411416
required Size buttonSize,
412417
required RoundedRectangleBorder buttonShape,

0 commit comments

Comments
 (0)