Fixed theme issue

This commit is contained in:
2026-02-24 17:49:24 +01:00
parent b84a893706
commit f07103a516

View File

@@ -40,10 +40,17 @@ class GameTracker extends StatelessWidget {
primaryColor: CustomTheme.primaryColor,
scaffoldBackgroundColor: CustomTheme.backgroundColor,
appBarTheme: CustomTheme.appBarTheme,
colorScheme: ColorScheme.fromSeed(
seedColor: CustomTheme.primaryColor,
colorScheme: const ColorScheme(
brightness: Brightness.dark,
).copyWith(surface: CustomTheme.backgroundColor),
primary: CustomTheme.primaryColor,
onPrimary: CustomTheme.textColor,
secondary: CustomTheme.textColor,
onSecondary: Color(0xFF000000),
error: Color(0xFFFF0000),
onError: CustomTheme.textColor,
surface: CustomTheme.backgroundColor,
onSurface: CustomTheme.textColor,
),
pageTransitionsTheme: const PageTransitionsTheme(
builders: {
TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),