mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-09 20:49:29 +00:00
fix onboarding to single page
This commit is contained in:
parent
6c60d1c6ed
commit
d9345cad2b
14 changed files with 422 additions and 325 deletions
|
|
@ -40,15 +40,20 @@ class MyApp extends ConsumerWidget {
|
|||
return apiSettings.activeUser == null || servers.isEmpty;
|
||||
}
|
||||
|
||||
var routerConfig = MyAppRouter(needOnboarding: needOnboarding()).config;
|
||||
// if (needOnboarding()) {
|
||||
// routerConfig.goNamed(Routes.onboarding);
|
||||
// }
|
||||
|
||||
|
||||
return MaterialApp.router(
|
||||
theme: lightTheme,
|
||||
darkTheme: darkTheme,
|
||||
themeMode: ref.watch(appSettingsProvider).isDarkMode
|
||||
? ThemeMode.dark
|
||||
: ThemeMode.light,
|
||||
routerConfig: MyAppRouter(needOnboarding: needOnboarding()).config,
|
||||
routerConfig: routerConfig,
|
||||
// routerConfig: _router.config,
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue