Use this tag for questions about the Flutter's go_router package.
Questions tagged [flutter-go-router]
266 questions
1
vote
1 answer
Unable to access BLoC in go_router v5.0 redirect method, BLoC is not injected in the context
I'm using flutter_bloc and go_router.
This is an implementation of multiple-page-form, for this demo it's just 2 pages. I used ShellRoute to provide MultiFormBloc to 2 routes, so that both routes will have access to the same MultiFormBloc…

Chwizdo
- 150
- 1
- 7
1
vote
1 answer
Not able to find go_router's official documentation
I was not able to find flutter go_router's official documentation. Their official link was gorouter.dev but now it is redirecting to https://pub.dev/packages/go_router. Any other recourses for go_router?

Abdullah Ejaz
- 27
- 4
1
vote
0 answers
Flutter go_router 5 How to maintain state and preload the pages?
I would like to maintain the state of screen (for exemple if i scroll down in a tab and change the tab and come back it is scrolled down). Aswell I wold like to preload all the the screens on start so when i change the tab in the bottom bar go fast…

Destrankir
- 61
- 6
1
vote
0 answers
Go_router and Sidebarx in flutter
I've tried to use Sidebarx with web navigation, using go_router
https://github.com/tas-unn/tttt
this is my project, which doesn't works correctly.
Full code you can see here
When I first run the application and click on the menu items there, no…

Anatoly
- 11
- 2
0
votes
1 answer
How to implement deep linking in Flutter with GoRouter while using GetX for In-App routing?
I've been using GetX for routing in my Flutter app for quite some time and it's been working great. However, I now have a requirement to implement deep linking using GoRouter. I'm not sure how to integrate GoRouter for deep linking while still…

Nahom Derese
- 1
- 1
0
votes
0 answers
How to use pushAndRemoveUntil with go_router in Flutter Web?
I am using declarative routing package such as go_router in Flutter Web, and trying to achieve what pushAndRemoveUntil can do as it is really helpful in many scenarios.
I tried to achieve this with all possible ways but none of the thing worked out…

Shubhanshu Kashiva
- 136
- 1
- 1
- 7
0
votes
1 answer
Flutter: The values in a const list literal must be constants. Try removing the keyword 'const' from the list literal
Here is the Widget that is getting the error:
The values in a const list literal must be constants. Try removing the keyword 'const' from the list literal.
ResponsiveCenter(
padding: EdgeInsets.symmetric(
…

user3831527
- 129
- 2
- 11
0
votes
0 answers
how to navigate to a stateful route using go router package in flutter
given a statefulshell route with shellroutebranches /leagues, /matches, /favorites. i wanted to add anothe rstatefullshell route inside the /leagues route with a shellroute branch of /details:tournamentId. here is the code:
@riverpod
GoRouter…

Abel
- 1
- 1
0
votes
0 answers
How to implement nested navigation with auth pages with go router in flutter?
So I have a app that when user open the app it first goes to splash screen then goes to login pages and after signin in user can see the home screen. But home screen is a nested navigation. It's similar to instagram. There's 4 tabs in bottom nav…

Shehan DMG
- 141
- 1
- 15
0
votes
0 answers
In Go_Router package, how to hide StatefulShellRoute.indexedStack? I tried using keys but I just can not make it work
I have a page called 'clubview' which is inside the StatefulShellRoute. When a user is in this page he can navigate to another page called 'createClub'.
I need a way to show BottomNavigationBar whenever I want, in this case I want it to show when a…

Miguel Borges
- 1
- 1
0
votes
0 answers
flutter go_router and riverpod Get parameters send to Controller
flutter_riverpod: ^2.3.7
go_router: ^10.1.0
flutter 3.13.0
code:
go_router:context.pushNamed("/home",queryParameters: {"arguments": user.name});
ControllerCode:
`
final ControllerProvider =
StateNotifierProvider.autoDispose
0
votes
0 answers
Flutter Authentication Flow with Gorouter and SharedPreferences
I want to create Authentication Flow with Gorouter and SharedPreferences. If the user is not logged in, it should go to LoginScreen else to MainLayout Screen. But in my case, context.goNamed does not work. There is no error show in my console
Here…
0
votes
0 answers
Flutter deep links open in web browser instead of app
I'm using go_router to handle all of my routes and navigation in my flutter app
This is my router defined
static GoRouter router = GoRouter(
navigatorKey: StateService.navigatorKey,
routes: [
GoRoute(
path: StartPage.id,
…

Junaid Tariq
- 568
- 8
- 22
0
votes
0 answers
Go_Router : Shell Router couldn't able to keep backstack in flutter
I am creating a nested naivagtion for the registration usecase.there is a common appbar and options are there.options differs from page to page.I could able to acheive this by using ShellRoute.if I'm using the router.pushNamed() , I am not able to…

dev
- 73
- 3
- 11
0
votes
0 answers
How to implement Flutter GoRoutter with NavigationRail
I have a LandingScreen which uses NavigationRail on the left and my screens (Home, Live, Settings ...) on the right, but I'm not sure on how to put it all together.
What I want to achieve is:
/
/login
/profileSelecting
then once authenticated and…