Skip to content

Instantly share code, notes, and snippets.



Last active Nov 3, 2020
What would you like to do?
state_examples: riverpod main root
void main() {
// For widgets to be able to read providers, we need to wrap the entire
// application in a "ProviderScope" widget.
// This is where the state of our providers will be stored.
runApp(ProviderScope(child: App()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment