Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Can't use async in redirect: from GoRouter #299

Answered by MaximeGer
MaximeGer asked this question in Q&A
Discussion options

You must be logged in to vote

I found a solution and made a repo with all my code so it can help others.
The solution I found is to forget redirect / refreshListenable and to use a widget that I wrap on every routes : the widget and the main.dart with the router

Edit: the widget is a FutureBuilder

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@MaximeGer
Comment options

Comment options

You must be logged in to vote
1 reply
@MaximeGer
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MaximeGer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #298 on January 06, 2022 20:09.