Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation falls back to homepage when 1) i change locale, 2) change screen size #328

Open
erimeilis opened this issue Aug 21, 2023 · 0 comments

Comments

@erimeilis
Copy link

Hello, if actually it's not a problem as for locale switches, it's surely a problem as for changing screen size (as i use it on web).
I use responsive_sizer and riverpod.
return ref.watch(authProvider).when( loading: () => Container(), error: (e, s) { ref.read(errorProvider.notifier).state = e; return Text(e.toString()); }, data: (user) { return ResponsiveSizer(builder: (context, orientation, screenType) { return AppBase( title: 'App', localizationsDelegates: const [ S.delegate, GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, GlobalCupertinoLocalizations.delegate, ], locale: ref.watch(localeProvider), supportedLocales: ref.watch(supportedLocalesProvider), routerDelegate: RoutemasterDelegate(routesBuilder: (context) { return user == null ? loggedOut : loggedIn; }), routeInformationParser: const RoutemasterParser(), colorMode: AppThemeColorMode.dark, ); }); });

Maybe there's any ability to save navigation state? After all, it would be not a bad idea to get user to the same page he was at last time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant