flutter-go-router Questions

4

Solved

In my Flutter application, I'm using the go_router package to manage routes and Firebase Authentication for user authentication. I have several screens that require users to be authenticated to acc...

2

I am working on the Flutter web and using go_router for navigation. Expectation: From the initial route, When the user tries to navigate back using the browser back button or reload the page, an al...

6

With GoRouter, Is there a way to push the exact same route with a different parameter and make the page reload? I am thinking of something like Navigator.pushReplacement I am using context.go('/my_...
Darlinedarling asked 22/8, 2022 at 17:30

6

I was wonder if there is alternative to Navigator's popUntil() method, or any workaround to achieve the same. If i were to use Navigator. I would use like so: void _logout() { Navigator.popUntil(c...
Curiosity asked 29/3, 2023 at 5:19

5

Solved

In a vanilla flutter I use to pass multiple parameters to other screen like this: Navigator.of(context).push(MaterialPageRoute( builder: (_) => CatalogFilterPage( list: list, bloc: bloc, ))...
Plentiful asked 14/7, 2022 at 6:20

3

Solved

I am using Go Router on my flutter project and I noticed that the back button is not presented anymore. Even when I specifically add it I get the following error: ======== Exception caught by gest...
Discriminate asked 28/1, 2023 at 22:39

4

On application start i have a few configuration pages (that can be skipped by user) that user setup once, and finally ends up in dashboard page. Possible navigation flows (depend on what user alrea...
Repose asked 14/10, 2022 at 6:34

4

Implementing navigation based on auth changes using flutter_bloc and go_router. What i need to do is at start if User is authenticated it should be redirected to HomeScreen with the ability to navi...

2

Solved

I have implemented go_router statefulShellRoute for bottomNavigationBar to have nested routes in a flutter app. But I also have pages I want to be outside of the statefulShellRoute (outside bottom ...
Nora asked 28/6, 2023 at 16:45

0

I've just started learning flutter weeks back. I'm building a project with Go router and Bloc & get_it for dependency injection & also making use of flutter_native_splash for my splash scre...

3

Solved

I am facing a use case I don't know the proper way to deal with. Please see here the simple application I have made: https://dartpad.dev/?id=5a00b315613990d8c3ead6e26bc2df4c This tries to simulate ...
Injurious asked 20/7, 2023 at 14:26

2

Solved

According to this blog, if using Navigator 2.0 and/or (in my case) GoRouter you can no longer override the phone's back button using the "WillPopScope" and onWillPop function call. Naviga...
Undesirable asked 10/1, 2023 at 13:54

2

I’m trying to get nested navigation to work with ShellRoute in go_router 5.0. As the example below shows, I can correctly navigate to the (nested) product page when clicking on a product. But if I ...
Discourtesy asked 21/9, 2022 at 9:9

3

I have wrapped the MaterialApp with a BlocProvider / BlocListener I get an error "Unhandled Exception: 'package:go_router/src/router.dart': Failed assertion: line 280 pos 12: 'inherited != nul...
Pridgen asked 5/11, 2022 at 11:8

2

I have a flutter app that I wanted to add stateful navigation to. I wanted to have it so that you can look at the list of "Foos" and then choose a Foo to look at. On the Foo detail page I...
Nipissing asked 21/6, 2023 at 23:12

4

Meaning if I go from a job screen to a client screen (the client the job was for), to another job screen (another job done for the client) etc, how can I display job > client > job? And inclu...
Forepart asked 26/9, 2022 at 13:17

1

I'm using go_router on flutter, and I have a root routes and a shell route that contains a bottom nav bar on all sub routes. And I want to push a page that is outside of the shell route and I want ...
Armond asked 11/9, 2023 at 18:37

3

So I switched to Go router recently in my app since it is very easy to implement. But I am having trouble moving from Splash Screen to Login Screen. I have logic in my Splash Screen where I check i...
Ostrich asked 17/10, 2022 at 12:23

0

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: [ Go...

0

I'm using go_router 10.0.0 and it rebuilds every screen in the navigation stack every time I do push or pop. All screens are StatlessWidget and declare it as const constructors as I'm saving the st...
Noelyn asked 16/8, 2023 at 9:6

0

here is the scenario, Im using StatefulShellRoute to preserve the state of each tab in my app, and when user sign in, or change language of the app, i need to refresh my StatefulShellRoute to load ...
Pendley asked 29/7, 2023 at 21:41

0

Edit: I solved it. Check the source here: https://github.com/hanskokx/flutter_adaptive_scaffold_example AdaptiveScaffold is great, but I'm having a hard time figuring out how to build layouts prope...
Menis asked 29/6, 2023 at 22:27

4

Solved

I am currently struggling refactoring my routing code with go_router. I already got some simple routes like /signin & /signup, but the problem comes in when I try to make the routing work with ...
Cordy asked 6/2, 2022 at 20:59

4

how can i redirect correctly to routes ? My application has to have some route security and I try to do it with GoRouter but it always executes one more redirection and always returns to home. Ther...
Uribe asked 4/11, 2022 at 23:25

2

Solved

I get this strange black border when I navigate in my (web) app. The "zoom" animation itself is desirable but I would like to get rid of the black border. Any ideas? Note that there are n...
Saltsman asked 2/1, 2023 at 1:35

© 2022 - 2024 — McMap. All rights reserved.