Theme changes & settings navigation

This commit is contained in:
2025-06-23 23:55:25 +02:00
committed by mathiskirchner
parent c78a3ed171
commit 348b812f9c
4 changed files with 33 additions and 12 deletions

View File

@@ -14,9 +14,20 @@ class MyApp extends StatelessWidget {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Game Tracker',
themeMode: ThemeMode.dark,
darkTheme: ThemeData.dark(),
theme: ThemeData(appBarTheme: CustomTheme.appBarTheme),
themeMode: ThemeMode.dark, // forces light mode
theme: ThemeData(
primaryColor: CustomTheme.primaryColor,
scaffoldBackgroundColor: CustomTheme.backgroundColor,
appBarTheme: CustomTheme.appBarTheme,
colorScheme: ColorScheme.fromSeed(
seedColor: CustomTheme.primaryColor,
brightness: Brightness.dark,
).copyWith(surface: CustomTheme.backgroundColor),
),
home: const CustomNavigationBar(),
);
}