Fixed some colors

This commit is contained in:
Juan Gilsanz Polo 2024-09-11 19:05:07 +02:00
parent b223076dae
commit c0f7449a95
3 changed files with 8 additions and 2 deletions

View file

@ -24,6 +24,9 @@ ThemeData lightTheme(ColorScheme? dynamicColorScheme) => ThemeData(
navigationBarTheme: NavigationBarThemeData( navigationBarTheme: NavigationBarThemeData(
surfaceTintColor: dynamicColorScheme?.surfaceTint surfaceTintColor: dynamicColorScheme?.surfaceTint
), ),
dialogTheme: DialogTheme(
surfaceTintColor: dynamicColorScheme?.surfaceTint
),
pageTransitionsTheme: const PageTransitionsTheme( pageTransitionsTheme: const PageTransitionsTheme(
builders: { builders: {
TargetPlatform.android: PredictiveBackPageTransitionsBuilder() TargetPlatform.android: PredictiveBackPageTransitionsBuilder()
@ -56,6 +59,9 @@ ThemeData darkTheme(ColorScheme? dynamicColorScheme) => ThemeData(
navigationBarTheme: NavigationBarThemeData( navigationBarTheme: NavigationBarThemeData(
surfaceTintColor: dynamicColorScheme?.surfaceTint surfaceTintColor: dynamicColorScheme?.surfaceTint
), ),
dialogTheme: DialogTheme(
surfaceTintColor: dynamicColorScheme?.surfaceTint
),
pageTransitionsTheme: const PageTransitionsTheme( pageTransitionsTheme: const PageTransitionsTheme(
builders: { builders: {
TargetPlatform.android: PredictiveBackPageTransitionsBuilder() TargetPlatform.android: PredictiveBackPageTransitionsBuilder()

View file

@ -377,7 +377,7 @@ class _Item extends StatelessWidget {
percent: data.values.toList()[0]/total, percent: data.values.toList()[0]/total,
barRadius: const Radius.circular(5), barRadius: const Radius.circular(5),
progressColor: Theme.of(context).colorScheme.primary, progressColor: Theme.of(context).colorScheme.primary,
backgroundColor: Theme.of(context).colorScheme.surfaceContainerHighest, backgroundColor: Theme.of(context).colorScheme.surfaceTint.withOpacity(0.2),
), ),
), ),
const SizedBox(width: 10), const SizedBox(width: 10),

View file

@ -44,7 +44,7 @@ class ThemeModeButton extends StatelessWidget {
? Theme.of(context).colorScheme.primary ? Theme.of(context).colorScheme.primary
: greyBackgroundColor : greyBackgroundColor
: disabled == null || disabled == false : disabled == null || disabled == false
? Theme.of(context).colorScheme.surfaceContainerHighest ? Theme.of(context).colorScheme.surfaceTint.withOpacity(0.1)
: greyBackgroundColor, : greyBackgroundColor,
) )
), ),