fix onboarding to single page

This commit is contained in:
Dr-Blank 2024-05-10 04:11:39 -04:00
parent 6c60d1c6ed
commit d9345cad2b
No known key found for this signature in database
GPG key ID: 7452CC63F210A266
14 changed files with 422 additions and 325 deletions

View file

@ -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,
);
}
}