fix: Use primary color for toggleable buttons

This commit is contained in:
Alberto Ponces 2022-09-05 17:48:14 +01:00 committed by GitHub
parent a59cc6b094
commit 15db9dcdb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,11 +25,13 @@ class DynamicThemeBuilder extends StatelessWidget {
ThemeData lightDynamicTheme = ThemeData( ThemeData lightDynamicTheme = ThemeData(
useMaterial3: true, useMaterial3: true,
colorScheme: lightColorScheme?.harmonized(), colorScheme: lightColorScheme?.harmonized(),
toggleableActiveColor: lightColorScheme?.primary,
textTheme: GoogleFonts.robotoTextTheme(ThemeData.light().textTheme), textTheme: GoogleFonts.robotoTextTheme(ThemeData.light().textTheme),
); );
ThemeData darkDynamicTheme = ThemeData( ThemeData darkDynamicTheme = ThemeData(
useMaterial3: true, useMaterial3: true,
colorScheme: darkColorScheme?.harmonized(), colorScheme: darkColorScheme?.harmonized(),
toggleableActiveColor: darkColorScheme?.primary,
textTheme: GoogleFonts.robotoTextTheme(ThemeData.dark().textTheme), textTheme: GoogleFonts.robotoTextTheme(ThemeData.dark().textTheme),
); );
return DynamicTheme( return DynamicTheme(