Skip to content

Commit

Permalink
fixup! upd comment text for BlocLibExample
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Wei committed Feb 16, 2019
1 parent 7af5603 commit 56ad7ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/routes/state_bloc_lib_ex.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ class _MyDemoAppState extends State<_MyDemoApp> {
Text("BLoC pattern is great for accessing/mutating app's state and "
"updating UI without rebuilding the whole widget tree. But the vanilla "
"BLoC implementation has too much boilerplate code. \n\n"
"With the flutter_bloc package, we can get rid of managing Streams "
"and implementing our own BlocProvider.\n"),
"With the flutter_bloc package, we don't need to manage Streams "
"or implement our own BlocProvider/InheritedWidget. We only need to "
"implement the core business logic in the `mapEventToState` function.\n"),
// ###4. Use the BlocProvider from flutter_bloc package, we don't need
// to write our own InheritedWidget.
BlocProvider<MyBloc>(
Expand Down

0 comments on commit 56ad7ea

Please sign in to comment.