From f07103a5163ed277c8ed9452a547e9ede9e06bca Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Tue, 24 Feb 2026 17:49:24 +0100 Subject: [PATCH] Fixed theme issue --- lib/main.dart | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 0002531..8818444 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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(),