From 15db9dcdb3a5b31a3b0ef45c9a26274ce809ba61 Mon Sep 17 00:00:00 2001 From: Alberto Ponces Date: Mon, 5 Sep 2022 17:48:14 +0100 Subject: [PATCH] fix: Use primary color for toggleable buttons --- lib/ui/theme/dynamic_theme_builder.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ui/theme/dynamic_theme_builder.dart b/lib/ui/theme/dynamic_theme_builder.dart index 2939158b..a08519df 100644 --- a/lib/ui/theme/dynamic_theme_builder.dart +++ b/lib/ui/theme/dynamic_theme_builder.dart @@ -25,11 +25,13 @@ class DynamicThemeBuilder extends StatelessWidget { ThemeData lightDynamicTheme = ThemeData( useMaterial3: true, colorScheme: lightColorScheme?.harmonized(), + toggleableActiveColor: lightColorScheme?.primary, textTheme: GoogleFonts.robotoTextTheme(ThemeData.light().textTheme), ); ThemeData darkDynamicTheme = ThemeData( useMaterial3: true, colorScheme: darkColorScheme?.harmonized(), + toggleableActiveColor: darkColorScheme?.primary, textTheme: GoogleFonts.robotoTextTheme(ThemeData.dark().textTheme), ); return DynamicTheme(