500 questions
0 votes
0 answers
65 views
What is the correct way to perform relative navigation in GoRouter?
I’m trying to use relative routing in GoRouter, but I’m running into a confusing issue. Here is my code: final GoRouter routerConfig = GoRouter( initialLocation: '/', routes: [ GoRoute(path: '...
0 votes
0 answers
58 views
How to influence the animation of the previous route?
I have been trying for quite a while to implement an animation similar to the Cupertino transition. I almost managed to create a parallax effect, but because the Hero animations refuse to work at all, ...
0 votes
0 answers
70 views
GoRouter StatefulShellRoute : initState not called when revisiting tab
I’m using GoRouter with StatefulShellRoute and a custom bottom navigation bar in my Flutter app. When I navigate between tabs, the initState() of my HomeScreen does not get called again when I return ...
0 votes
0 answers
59 views
Manual dispose of the provider in Flutter
In the mobile application I developed with Flutter, I go to different screens from the home page. Then, when I go back to the home page, I need to dispose some providers. In the project, I am using a ...
0 votes
0 answers
30 views
rootNavigatorKey.currentContext sometimes null in didChangeAppLifecycleState on resume
I’m using GoRouter and a global NavigatorKey. Sometimes, I see crashes in production logs where rootNavigatorKey.currentContext is null inside didChangeAppLifecycleState on both Android and iOS. I can’...
0 votes
1 answer
67 views
Why is GoRouter complaining I'm using a parameterized route as a default location when I'm not?
GoRouter is complaining that I'm using a parameterized route as the default location, but I'm not. The default location of a StatefulShellBranch cannot be a parameterized route 'package:go_router/src/...
0 votes
2 answers
79 views
How to disable mobile_scanner widget on changing page via GoRouter
I'm new to Flutter and Dart. I'm using GoRouter and StatefulShellRoute (from https://codewithandrea.com/articles/flutter-bottom-navigation-bar-nested-routes-gorouter/) for a nested navigation using a ...
0 votes
0 answers
51 views
Deeplink Web Flutter issue
I have implemented deepLink on flutter with go_router package. Everything works fine on mobile app but when I try to open a link on the web using for example a QR code this does not work and I get ...