mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-09 20:49:29 +00:00
feat: Add useCurrentPlayerThemeThroughoutApp setting to ThemeSettings
This commit is contained in:
parent
74e0d77cf9
commit
3e405b795d
4 changed files with 54 additions and 19 deletions
|
|
@ -55,7 +55,7 @@ void main() async {
|
|||
// run the app
|
||||
runApp(
|
||||
const ProviderScope(
|
||||
child: MyApp(),
|
||||
child: _EagerInitialization(child: MyApp()),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
@ -76,16 +76,14 @@ class MyApp extends ConsumerWidget {
|
|||
routerConfig.goNamed(Routes.onboarding.name);
|
||||
}
|
||||
|
||||
return _EagerInitialization(
|
||||
child: MaterialApp.router(
|
||||
// debugShowCheckedModeBanner: false,
|
||||
theme: lightTheme,
|
||||
darkTheme: darkTheme,
|
||||
themeMode: ref.watch(appSettingsProvider).themeSettings.isDarkMode
|
||||
? ThemeMode.dark
|
||||
: ThemeMode.light,
|
||||
routerConfig: routerConfig,
|
||||
),
|
||||
return MaterialApp.router(
|
||||
// debugShowCheckedModeBanner: false,
|
||||
theme: lightTheme,
|
||||
darkTheme: darkTheme,
|
||||
themeMode: ref.watch(appSettingsProvider).themeSettings.isDarkMode
|
||||
? ThemeMode.dark
|
||||
: ThemeMode.light,
|
||||
routerConfig: routerConfig,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue