Use this tag for questions about the Flutter's go_router package.
Questions tagged [flutter-go-router]
266 questions
3
votes
2 answers
Flutter GetX updating locale is resetting GoRouter navigation bug
I am using GoRouter for navigation and GetX for multiple things, including updating the app's locale.
It is updating the language perfectly fine, but the problem is that somehow my navigation stack is getting reset after the call.
I've made a…

Chris
- 1,828
- 6
- 40
- 108
3
votes
1 answer
Using go_router push and pop a page causes rebuild, how to prevent?
I'm using go_*router to navigate between screens unfortunately it causes every time rebuilds on the current page and the page I navigate to. On most pages I read documents from Firebase which causes unnecessary reads. As alternative I use the…

Julius Guilt
- 31
- 1
- 2
3
votes
1 answer
Back button not showing when using ShellRouter with GoRouter in flutter
I have a simple structure
A ShellRoute with Home as a initial page a sub route with /post/:id I navigator from the homepage to the post page using push but the backbutton is not showing on the app bar.
Also it's worth noting if on the Post widget…

MorganT
- 155
- 1
- 10
3
votes
0 answers
How to change go_router's location when using OpenContainer from animations?
I'm trying to open a page with OpenContainer, and passing the RouteSettings with name.
Is there any way to update the router.location from go_router package?
That's how I use OpenContainer, which OpenBuilder returns the page that I'm passing.
class…

mirkancal
- 4,762
- 7
- 37
- 75
3
votes
2 answers
Flutter - How to check if dialog is shown when using go_router
I was using Navigator 1 then I migrated to go_router to support deep links and web.
Sometimes when I send HTTP requests, I show a loading dialog using showDialog() until the response is processed, after processing I need to check if a dialog is…

Khalid Muhammad
- 31
- 5
3
votes
2 answers
Black border around scaffold body during page transition
I get this strange black border when I navigate in my (web) app. The "zoom" animation itself is desirable but I would like to get rid of the black border. Any ideas?
Note that there are no black layers below the content area - this looks like an…

Felix ZY
- 674
- 6
- 14
3
votes
0 answers
GoRouter: Incorrect URL after pop
What I noticed is that the query params in URL still there not remove when I pop back to previews screen.
Here is how the URLs look on web:
Expected results:
In the Address bar of the browser, it should: #/
Actual results:
In the Address bar of the…

Aadi
- 31
- 1
3
votes
3 answers
How to use context.go() method for ShellRoute in Flutter/GoRouter
I have a login page, and after login homepage basically. The homepage has BottomNavigationBar, like Instagram, and It's obvious that it's not GoRoute, instead of this it's ShellRoute. So, ShellRoute has a key, but it has not path parameter, and…

alperefesahin
- 604
- 6
- 22
3
votes
0 answers
Go_Router: How to access and manipulate the navigators history?
How can I / what is the best practise ... to manipulate the history of the navigator (removing specific Routes from the history when using the GoRouter?

derChris
- 726
- 8
- 19
3
votes
2 answers
How to change the app bar title depending on the selected GoRouter route?
I want to implement a GoRouter based navigation with a fixed Scaffold and AppBar, but change the title of the AppBar dynamically based on the selected route.
I'm using GoRouter's ShellRoute to have a fixed Scaffold and AppBar and tried changing the…

schneida
- 729
- 3
- 11
- 37
3
votes
2 answers
GoRouter - Can I push 2 pages at once?
I'm using go_router and I am about to do this in a callback of one of my buttons:
EvelatedButton(
onPressed: () {
GoRouter.of(context)
..push('/page-1')
..push('/page-2');
},
)
This is to push 2 pages in the history at once.…

Valentin Vignal
- 6,151
- 2
- 33
- 73
3
votes
2 answers
Flutter: How to use GoRouter with Bloc to route from Splash Screen to Login Screen
So I switched to Go router recently in my app since it is very easy to implement. But I am having trouble moving from Splash Screen to Login Screen. I have logic in my Splash Screen where I check if the user is logged in or not. Based on the user's…

sulli110
- 145
- 2
- 16
3
votes
1 answer
How to make go_router, Appbar, and Drawer work together in Flutter?
I'm using the go_router package in Flutter for app routing, but I'm running into issues when I use it alongside the default Flutter Appbar and Drawer widgets.
Typical "go" and "push" methods that I'm calling from clicks in the Drawer don't work as…

Doughy
- 4,115
- 6
- 36
- 39
3
votes
2 answers
Flutter TapBar Page white flicker on init
I am using a TabBarView in my app like this:
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
TabBarView(
controller: _controller,
physics: const…

Chris
- 1,828
- 6
- 40
- 108
2
votes
1 answer
How can I navigate to a new screen while closing a Flutter drawer using go_router?
When navigating in a drawer, the drawer disappears instead of showing the sliding close animation. I'm using go_router and placing a scaffold on every screen.
Is there a way to navigate to a new screen while the drawer is closing? I don't want to…

SP86
- 21
- 2