Use this tag for questions about the Flutter's go_router package.
Questions tagged [flutter-go-router]
266 questions
1
vote
0 answers
Close open dialogs / bottom sheets upon navigation from NavigationBar
How can I close any open dialogs/bottom-sheets when the user clicks on the NavigationBar items? It essentially Navigates away, but from a NavigationBar that is higher up in the widget tree than the widget that opened the dialog/bottom-sheet, so the…

BeniaminoBaggins
- 11,202
- 41
- 152
- 287
1
vote
0 answers
Flutter: GoRouter slide transition direction
I make GoRouter work with slide transitions. I want the transition to slide from right to left when the router makes push and left to right when the router pops.
Here is the working code:
transition_factory.dart
static CustomTransitionPage…

Yuriy N.
- 4,936
- 2
- 38
- 31
1
vote
0 answers
How to handle endless sub routes & nested routes in Flutter Web using the go_router package
I'm building a simple file storage application like DropBox. The base file path for assets would be mywebsite.com/assets. I want to be able to also handle dynamic paths like the…

Rezia
- 35
- 1
- 6
1
vote
1 answer
Flutter ShellRoute not working no widget found error
I am trying to use Shell Route to make Appbar stay when changing page but having an error
so this Page is a stateful Widget with Column(children:[]) as return argument
const Register()
ShellRoute(
navigatorKey: _shellNavigatorKey,
builder:…

ralphy
- 89
- 1
- 14
1
vote
0 answers
Flutter go_router ShellRoute builder were called multiple times when keyboard pops up
I have a problem with the flutter go_router ShellRoute. Whenever I make the TextFormField to be focused and the keyboard pops up, the builder function of the ShellRoute will be called multiple times which makes me confused. What should I do to make…

billcyz
- 1,219
- 2
- 18
- 32
1
vote
1 answer
Flutter - go_router redirection method calls multiple times when redirecting to some particular screen
I am using the go_router package for routing and everything is working unless 1 router whenever I try to go to that router the redirection method of go_router is being called multiple times, Does anyone know the reason
How to minimize the call of…

Md zeeshan iqbal
- 11
- 1
1
vote
0 answers
How to navigate to a ShellRoute with go_router?
I have a shell route called BasePage with routes such as HomePage. I want the first screen of my app to be another page called FirstPage. Then, I want to navigate from FirstPage to BasePage. However, BasePage doesn't have a path, so when I use…

Miro
- 364
- 1
- 12
1
vote
0 answers
Flutter - GoRouter Navigation not working
I have been experimenting with GoRouter and ShellRouter. With the current configuration apart from the redirect to the Login page after a successful Auth has been performed no other navigation works. I have tried to add the routerConfig to the…

Adrian0012
- 175
- 1
- 5
1
vote
1 answer
How to use go_router with bloc to check if the user is authenticated or not and than pass him to the right page?
Problem: I want to navigate to the shell route when a user is logged in and the login page when no one is logged in. What developers usually do is redirect the route to another one when user is logged in but I can't redirect the route to a shell…

karim mesghouni
- 13
- 4
1
vote
1 answer
Flutter :go_router to pass the data of a list view to a detail page
I want to open a detail page from a list view and not sure how to pass the value of the title clicked to other page
GoRoute(
path: "/detailed_post/:title/:description",
builder: (context, state) => DetailedPost(
questionTitle:…

ngqh
- 33
- 3
1
vote
0 answers
Continue with the current location and the new in navigation using shell route go_router
I have router with shel route:
final goRouter = GoRouter(
initialLocation: '/a',
navigatorKey: _rootNavigatorKey,
routes: [
ShellRoute(
navigatorKey: _shellNavigatorKey,
builder: (context, state, child) {
return…

Iyar Avital
- 11
- 2
1
vote
0 answers
How to go sub-route from ShellRoute?
I am using ShellRoute to control BottomNavigationBar. It works fine. But when I try context.go I get the message that the given path was not found.
static final _rootNavigatorKey = GlobalKey();
static final _shellNavigatorKey =…

Octane
- 11
- 2
1
vote
0 answers
How can we navigate seperate screen using CarouselSlider flutter?
I'm using go router package for routing.And trying to open seperate pages with the id when clicking on the page
my function inside my homepage.dart
Widget buildImage(String urlImage, String title, int price, double padding,
int index, String…

Mohammed Malek
- 164
- 1
- 9
1
vote
2 answers
How to use pushReplacment method using go-router package?
How can we use pushReplacment using go-router package
I tried this but didn't work
context.pushReplacement("register");
To use the Navigator API with named routes (pushNamed, pushReplacementNamed, or pushNamedAndRemoveUntil), the Navigator must…

Mohammed Malek
- 164
- 1
- 9
1
vote
1 answer
Flutter goRouter plugin: when the app is opened from a Firebase Deeplink it should jump to that screen not open where it left off
I am using
https://pub.dev/packages/go_router plugin. When my app is closed and I click on a deeplink it opens my app correctly. If the app is in the background the deeplink merely brings it to the foreground, it does not actually do anything to the…

Sam
- 1,659
- 4
- 23
- 42