Skip to content

Commit

Permalink
fixup! flutter format
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Wei committed Feb 15, 2019
1 parent c7a4976 commit 0c071c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/routes/state_scoped_model_ex.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ class CounterAndButton extends StatelessWidget {
// ###3. Wrap children widgets ScopedModelDescendant widget to access the
// associated state model.
return ScopedModelDescendant<MyStateModel>(
// Note: Set `rebuildOnChange` to false if the current widget doesn't
// need updating. E.g. When "add-to-cart" button is pressed, the app's
// Note: Set `rebuildOnChange` to false if the current widget doesn't
// need updating. E.g. When "add-to-cart" button is pressed, the app's
// state is updated, but "product-details" page doesn't need updating.
rebuildOnChange: true,
builder: (context, child, model) => Card(
Expand Down
1 change: 0 additions & 1 deletion lib/routes/state_streamcontroller_ex.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ class _StreamControllerDemoState extends State<_StreamControllerDemo> {
title: Text(data.message),
subtitle: Text(data.timestamp.toString()),
);
print('new widget output');
_outputStreamController.sink.add(widgetToRender);
}

Expand Down

0 comments on commit 0c071c0

Please sign in to comment.