Guest User

Untitled

a guest
Apr 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. void main() => runApp(ToDoListApp());
  2.  
  3. class ToDoListApp extends StatelessWidget {
  4. final Store<AppState> store = Store<AppState>(
  5. appReducer, /* Function defined in the reducers file */
  6. initialState: AppState.initial(),
  7. middleware: createStoreMiddleware(),
  8. );
  9.  
  10. @override
  11. Widget build(BuildContext context) => StoreProvider(
  12. store: this.store,
  13. child: MaterialApp(
  14. // Omitting some boilerplate here
  15. home: ToDoListPage(title: 'Flutter Demo Home Page'),
  16. ),
  17. );
  18. }
Add Comment
Please, Sign In to add comment