Skip to content

Commit b38eeed

Browse files
authored
Update theme.dart
The primary is deprecated and should not be used. We can change that to foreground color
1 parent ae8c938 commit b38eeed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/theme/theme.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ final ThemeData wgerTheme = ThemeData(
9595
*/
9696
textButtonTheme: TextButtonThemeData(
9797
style: TextButton.styleFrom(
98-
primary: wgerPrimaryButtonColor,
98+
// This primary is deprecated and should not be used
99+
// primary: wgerPrimaryButtonColor,
100+
foregroundColor: wgerPrimaryButtonColor,
99101
),
100102
),
101103
outlinedButtonTheme: OutlinedButtonThemeData(

0 commit comments

Comments
 (0)