Last active
November 3, 2020 04:40
state_example: bloc main
This file contains 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 "BlocProvider" widget. | |
// This is where the state of our NotesCubit will be stored. | |
runApp(BlocProvider<NotesCubit>(create: (_) => NotesCubit(), child: App())); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment