Relative Content

Tag Archive for flutterdartflutter-go-router

refresh scaffold screen on browser back button for web app with GoRouter?

I recently added web as a platform on my mobile flutter app. Updated all my navigation code to use GoRouter package.
We cannot use await on context.go and I don’t want to use context.push as the url is not deep linkable.
When I press back button on browser or use context.pop, I want my previous screen to reload fresh just like any webpage would load. but I am not able to figure this out.
Please advice. Thanks in advance.
P.S I am not using any state management package rn. Do I have to implement a package like Riverpod to achieve this?

Flutter How to combine FlowBuilder with GoRouter

I am trying to get authenticated routing working. My plan was to seperate the authenticated routing logic into FlowBuilder, since this seems more convenient with top level authentication states.

Go router package nested page navigation problem in my Flutter application

I want to include the go router package in my flutter project, but I’m having trouble because I’m very new to this subject. The problem I’m having is that I created nested pages and when you give this kind of sub-page, a back button is automatically created in the appbar. When I click on this back button, it prints the same page again, while I expect it to return to the previous page.
below I share my code with you