Last active
November 3, 2020 04:33
-
-
Save chimon2000/9d321fc35d6f8b629085ea1f6a7abbef to your computer and use it in GitHub Desktop.
state_examples: riverpod main root
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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