Skip to content

Instantly share code, notes, and snippets.

@chimon2000
Last active November 3, 2020 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chimon2000/9d321fc35d6f8b629085ea1f6a7abbef to your computer and use it in GitHub Desktop.
Save chimon2000/9d321fc35d6f8b629085ea1f6a7abbef to your computer and use it in GitHub Desktop.
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