You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pre-app configuration is called before running the flutter app. It contains actions that provide state that needs to be awaited before the app runs. When adding your own actions here make sure that they are not time-consuming because that will increase the app load time resulting in bad UX.
For less important actions that don't need to be awaited see config/post_app_config.dart
The current pre-app config executes the following actions:
Initializes widgets binding
Configures Firebase
Initializes loggers:
Console logger (except in production)
File logger (except in production)
Firebase logger
Sets up the service locator
Initializes UserManager
Initializes PreferencesHelper which holds your settings state
Post-app config
Path: config/post_app_config.dart
The post-app configuration is called after rendering the App widget.
Here you can add anything that is alright to be executed after the app is rendered because we do not want to make the initial load time of our app longer.
For example, here we run a test platform method to check if the platform comm is working, but only if the project flavor is not production.