Use this tag for questions about the Flutter's go_router package.
Questions tagged [flutter-go-router]
266 questions
0
votes
1 answer
Flutter - Single/Common scaffold between multiple screens with go_router navigation
I want to use common scaffold widget between multiple screens with go_router navigation library.
I don't understand the approach.
I saw some examples for common scaffold with multiple screens but they are using some index based scaffold body content…

dev.vinod
- 5
- 4
0
votes
0 answers
Flutter Go Router Exception
I am a beginner with Flutter and I want to implement nested routes using the go Router. However, I am facing an issue with using shell routes.
Currently, I am using a shell route to push a Homepage which has a scaffold with bottom navigation,…

user13931873
- 25
- 3
0
votes
2 answers
how to exit on press back button from a screen
I am using go_router and I want to exit my app from a subroute when the user presses the back button. for example, I have routes '/', '/a', '/b', '/a/1'. now I from the '/a/1' route I want to exit the app when the user presses the back button(based…

Safiul islam
- 95
- 1
- 9
0
votes
0 answers
Flutter GoRouter: Unable to Access Path Parameters Data, Receiving Null
I'm facing an issue while passing data received from an API in my Flutter app. The data is retrieved in the summarize_controller and needs to be stored in multiple TextEditingController instances before being passed to another screen called…

Muzammil
- 1
- 2
0
votes
0 answers
Flutter GoRouter is not navigating when it's wrapped in a service class
I have this router service.
class AppRouter {
late final AppService appService;
GoRouter get router => _goRouter;
AppRouter(this.appService);
late final GoRouter _goRouter = GoRouter(
refreshListenable: appService,
initialLocation:…

user2682025
- 656
- 2
- 13
- 39
0
votes
1 answer
Flutter web - go_router - read value after hash #
Given the url: /path#someValue I would like to get the value after #, which is exactly the someValue.
GoRoute(path: 'path', pageBuilder: (context, state) {
// I need to get: `someValue` here
}),
I am using GoRouter and…

Tom Raganowicz
- 2,169
- 5
- 27
- 41
0
votes
1 answer
Flutter go router do not navigate after initial route
I am new to GoRouter, using go router I am able to navigate to initial route that is set as path "/". But after that it is not navigating to other paths.
The first page navigates to splash_screen successfully.
After 5 seconds timer, the page should…

Yash
- 17
- 5
0
votes
3 answers
Flutter routing in web as single page application
I have a dashboard on web, which have common layout like side menu on web and on change its view will reflect.
I have setup route like this:
final GoRouter _router = GoRouter(routes: [
GoRoute(
path: '/',
builder: (BuildContext…

rameez khan
- 73
- 1
- 23
- 68
0
votes
1 answer
Flutter GoRouter deep linking multiple parameters
I'm trying to do deeplinking in one of my Flutter projects using GoRouter. The link I'm trying to open has the following format:
https://url/confirm?token=token&tokenId=tokenId
The route I have defined for this type of link is the…

Cioloca Rares
- 41
- 3
0
votes
0 answers
flutter screen build a screen flow with go_router & flutter_bloc
I'm trying to build a multi screen register using go_router and flutter_bloc
and collect data from screens as we move further into the stack
so basically the user will
land on the first screen
enter the name, email...
goes to the second…

Sobhy Rzk
- 1
- 1
0
votes
0 answers
flutter: after navigate throughing a error Failed assertion
when my all variable is null then my "initialRoute" is set on LoginPage. now when I am trying to login then I am getting this bellow error.
Failed assertion: line 3002 pos 7: '!pageBased || isWaitingForExitingDecision': A page-based route cannot be…

Deepak
- 1,664
- 3
- 19
- 52
0
votes
0 answers
How to get initState called after Go Router .go method returns to a page
In a Flutter app,
I'm getting a list of objects on page A
I go to page B to edit an object
I return to page A but my edits from the previous step are not visible (data is not reloaded)
I'm using Go Router .go method to navigate between routes.…

Faran Negarestan
- 31
- 4
0
votes
1 answer
GoRouter Redirection with Firebase Auth
I'm using go_router as my navigation package in my Flutter app, and i want to redirect the user based on their authentication state from the redirect property in the GoRouter class.
redirect: (context, state) {
final user =…

Faris Armoush
- 67
- 5
0
votes
0 answers
Navigating back from a screen removes the bottom navigation bar in flutter
I have a Main page, and the page Contains a bottom navigation bar with five options, among which one is "Tasks". I am calling all the pages on this main page when an option from the tab is clicked. For example, if I have a class called task, when I…

sadil manjiyani
- 21
- 5
0
votes
0 answers
Navigate to a new route but not replace the child route in GoRouter ShellRoute
I have been trying to navigate to the route (GoRoute), but couldn't find a way to navigate to that route (GoRoute) and then come back to the former route (ShellRoute) while using GoRouter's ShellRoute. I am using a ShellRoute with Bottom Navigation,…

Noah
- 567
- 5
- 21