How to access providers from a flutter app's main()
function?
#1387
-
It appears from the docs that you can retrieve My use case is that I want to load data from secure storage in |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Maybe this helps? Load theme from the database before building any widgets. |
Beta Was this translation helpful? Give feedback.
-
You can use |
Beta Was this translation helpful? Give feedback.
-
Nowadays the recommended approach isn't to put logic in the main. See https://riverpod.dev/docs/essentials/eager_initialization |
Beta Was this translation helpful? Give feedback.
Nowadays the recommended approach isn't to put logic in the main. See https://riverpod.dev/docs/essentials/eager_initialization