Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main() => runApp(ToDoListApp());
- class ToDoListApp extends StatelessWidget {
- final Store<AppState> store = Store<AppState>(
- appReducer, /* Function defined in the reducers file */
- initialState: AppState.initial(),
- middleware: createStoreMiddleware(),
- );
- @override
- Widget build(BuildContext context) => StoreProvider(
- store: this.store,
- child: MaterialApp(
- // Omitting some boilerplate here
- home: ToDoListPage(title: 'Flutter Demo Home Page'),
- ),
- );
- }
Add Comment
Please, Sign In to add comment