gorouter 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...

1

i want to display a global overlay loading instance in my main app widget it works fine inside materialApp but when i used go router and turn it into MaterialApp.router the state is changed but the...

4

Solved

I am developing a Flutter application with go_router and riverpod for navigation and state management respectively. The app has a widget which displays a live camera feed, and I'd like to "swi...
Piteous asked 29/10, 2022 at 18:13

7

Solved

as the docs from go_router describe, it is easy to set pageBuilder-Transitions for single pages. However, I want to set the default PageTransition for all pages. How do I set the default page trans...
Allan asked 27/3, 2022 at 12:40

2

What im trying to do is for example if router came from login to verification screen do something but when prev location from sign up and not login dont do something. So i want to get the prev loca...
Zanze asked 19/10, 2022 at 7:23

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

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

10

Solved

I'm trying to open a page and get returned result with go_router package. In Navigation 1.0 I use this: final result = await Navigator.push( context, MaterialPageRoute(builder: (context) => co...
Tumble asked 5/3, 2022 at 4:14

2

How do I go back to the previous screen with flutter's go_router? How to pop context? Currently I am simply adding a new screen to the stack whether I want to go back or go forward. onTap: (() =&g...
Pantechnicon asked 23/11, 2022 at 6:16

4

The problem I want to solve: My app which uses GoRouter needs to be able to route to a named route from within main(). Since most routing is of the form 'context.go' I cannot do so within main. Bac...
Reinhart asked 21/7, 2022 at 0:30

1

I use to pass a BLoC instance to a new route like so : Navigator.of(context).push<void(FavoriteDetailPage.route(_favoriteBloc)); class FavoriteDetailPage extends StatelessWidget { const Favori...

1

Solved

In Navigator, we can use .then. for eg: Navigator.push( context, MaterialPageRoute( builder: (context) => XyzScreen(), ), ).then((value) => _someFuncion()); so is there any way to impl...
Farmhouse asked 30/6, 2022 at 9:0

2

Solved

I'm integrating GoRouter in my Flutter app where I'm already using Riverpod. I have an isAuthorizedProvider defined as follows: final isAuthorizedProvider = Provider<bool>((ref) { final auth...
Breakthrough asked 1/3, 2022 at 11:24

2

Solved

I am trying to figure out how to make use of Firebase's onAuthStateChanges() stream to use as a Listenable in the refreshListenable parameter from the go_router package to redirect whenever the aut...
Bills asked 11/11, 2021 at 15:10
1

© 2022 - 2024 — McMap. All rights reserved.