Flutter go_router redirects to / on state change when it should not redirect at all
I have this router:
How to create a provider that holds the state of the route at top of go_router?
I been trying to get riverpod to work with go_router via the observer field in the GoRouter Object. The Objective is to create provider that other provider can read to retrieve the current route state.
Having problem on showing the main content in an Administration page of a Flutter Web Application
I am developing a responsive Web Application Administration page in Flutter that uses Supabase, Riverpod and GoRouter. In my Home Page, I used a Scaffold widget with an Appbar, and created a MenuPanel that was placed in a Drawer widget. The body should contain main content which should be a Page/Screen. I am relatively new to Flutter and thinking like what I do in PHP/Javascript that there should only one declaration of the header and menu/navigation bar, while only the main section changes. How can I do that in Flutter, what widget should I use for the main section? For example, I have an AddUser and ViewUser pages. Here are my current code (some lines are omitted):
How can I reset Flutter App State Upon Logout?
I’m using Flutter with flutter_riverpod, go_router, and secure_flutter_storage. While I’ve successfully cleared local storage upon logout, the app retains previous settings and content upon logging back in. How can I reset the app’s state to ensure a fresh start on subsequent logins?