Define the app's InitialRoute depending on a provider #3414
Replies: 1 comment
-
If I'm not mistaken, the If you need to do some async computation to determine what your initial route will be, what do you plan on displaying during this computation? You could either show a custom loading screen, in which case that loading screen would be your initial route, or you could just show the app splash screen. If you make the |
Beta Was this translation helpful? Give feedback.
-
Description
Currently, I'm using a single provider in Flutter to fetch data from multiple API calls within my application. However, I'm encountering difficulty in managing the progressive display of Data and Errors in my UI.
Currently, I'm using a provider in Flutter to fetch some data with FlutterSecureStorage. Based on the result of the operation, I want to send the user on a different route.
However, in release mode the state is correctly updated, but the initialRoute doesn't change.
The code I'm currently dealing with:
Beta Was this translation helpful? Give feedback.
All reactions