Skip to content

How to access providers from a flutter app's main() function? #1387

Answered by rrousselGit
fabis94 asked this question in Q&A
Discussion options

You must be logged in to vote

Nowadays the recommended approach isn't to put logic in the main. See https://riverpod.dev/docs/essentials/eager_initialization

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@ghost
Comment options

@fabis94
Comment options

@degits
Comment options

@mustafa-fahimi
Comment options

@kane-knowby
Comment options

Comment options

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