How to keep the state of just some routes with GoRouter
My app has a MainPage with with a BottomNavigationBar
with 3 tabs (A B C). The desired behavior is:
ShellRoute with ModalBototmSheetRoute in flutter
I’m implementing navigation within a BottomSheet using ModalBottomSheetRoute and go_router. However, I am unable to navigate to different paths within the BottomSheet. I have searched through various StackOverflow posts and issues, but I haven’t found any cases similar to mine.
How To Mock Go Router
In Flutter I have a unit test where I am trying to test whether my code is correctly navigating to another page. I use mocktail for testing.
GoRouter nested routes duplication
I’m working on a movie app
flutter go router builder
**Hello everyone, I am trying to develop a project with flutter web, but the unexpected null value error is written on the screen, and in the console, The relevant error-causing widget was:
Builder
Builder:file:///Users/mertyavuz/.pub-cache/hosted/pub.dev/go_router-14.1.4/lib/src/builder.dart:256:9
I get this error **
How to push a GoRoute over a StatefulShellRoute?
I have the following router config
flutter go_router: re-render previous page when navigate with pushNamed
I find an issue with my flutter
project with go_router
that the previous page is re-rendered when I navigate to another page with pushNamed
.
Flutter web clears the navigation stack except the current screen using go_router
Whenever I refresh the screen which is above another screens all below screens are disposed in web using go_router with context.pushNamed.
How to get the name of the current route using go_router in Flutter?
Following the changes described in the migration guide, I can access the Uri directly (e.g., /product/123). However, I need to get the name of this route, which is product_details.
How can I update the URL without navigating using go_router on flutter web?
I am using flutter_map in conjunction with go_router. I have a container widget, which is stateful and, among other things, can save the map bounds for state restoration. It loads the initial bound from the widget and, if the widget is updated, it will move the map to match as well.