Relative Content

Tag Archive for flutterriverpodflutter-go-router

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?