Skip to content

Commit

Permalink
Remove unused watchUpdateMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
zjuwjf committed May 27, 2019
1 parent db7ef85 commit 5999684
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 31 deletions.
15 changes: 9 additions & 6 deletions example/lib/todo_edit_page/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Widget buildView(
TodoEditState state, Dispatch dispatch, ViewService viewService) {
return Scaffold(
appBar: AppBar(
backgroundColor:state.themeColor,
backgroundColor: state.themeColor,
title: const Text('Todo'),
),
body: Container(
Expand Down Expand Up @@ -41,12 +41,15 @@ Widget buildView(
],
),
),
new RaisedButton(
padding: new EdgeInsets.only(left: 20.0, top: 10.0, right: 20.0, bottom: 10.0),
RaisedButton(
padding: const EdgeInsets.only(
left: 20.0, top: 10.0, right: 20.0, bottom: 10.0),
color: Colors.blue,
child: new Text("Change theme", style: new TextStyle(fontSize: 18), overflow:TextOverflow.ellipsis),
child: const Text('Change theme',
style: TextStyle(fontSize: 18),
overflow: TextOverflow.ellipsis),
onPressed: () {
dispatch(ToDoEditActionCreator.changeTheme());
dispatch(ToDoEditActionCreator.onChangeTheme());
}),
Expanded(
child: Container(
Expand Down Expand Up @@ -82,7 +85,7 @@ Widget buildView(
),
),
floatingActionButton: FloatingActionButton(
onPressed: () => dispatch(ToDoEditActionCreator.done()),
onPressed: () => dispatch(ToDoEditActionCreator.onDone()),
tooltip: 'Done',
child: const Icon(Icons.done),
),
Expand Down
1 change: 0 additions & 1 deletion lib/src/redux_middleware/middleware/log.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '../../redux/redux.dart';
import '../../redux_component/redux_component.dart';
import '../../utils/utils.dart';

/// Middleware for print action dispatch.
Expand Down
1 change: 0 additions & 1 deletion lib/src/redux_middleware/middleware/middleware.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export 'log.dart';
export 'performance.dart';
export 'watch_update.dart';
23 changes: 0 additions & 23 deletions lib/src/redux_middleware/middleware/watch_update.dart

This file was deleted.

0 comments on commit 5999684

Please sign in to comment.