Created
July 9, 2019 02:29
-
-
Save felangel/27535769095ceb09cb60b2f574aae7b4 to your computer and use it in GitHub Desktop.
[flutter_bloc_0.19.0] BlocProvider value constructor
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
Navigator.of(context).push( | |
MaterialPageRoute<MyPage>( | |
builder: (context) { | |
return BlocProvider.value( | |
value: BlocProvider.of<MyBloc>(context), | |
child: MyPage(), | |
); | |
}, | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment