More redux and api work
This commit is contained in:
parent
866e776389
commit
2c67b68512
17 changed files with 256 additions and 11 deletions
|
|
@ -8,6 +8,9 @@ import 'homePage.dart';
|
|||
import 'introPage.dart';
|
||||
import 'sandbox.dart';
|
||||
import 'theme.dart';
|
||||
import 'package:flutter_redux/flutter_redux.dart';
|
||||
import 'package:redux/redux.dart';
|
||||
import 'models/appState.dart';
|
||||
|
||||
class FiresApp extends StatelessWidget {
|
||||
static final WidgetBuilder introWidget = (context) => new IntroPage();
|
||||
|
|
@ -20,12 +23,15 @@ class FiresApp extends StatelessWidget {
|
|||
Sandbox.routeName: (BuildContext context) => new Sandbox(),
|
||||
};
|
||||
|
||||
final Store<AppState> store;
|
||||
|
||||
// globals.getIt.registerSingleton
|
||||
FiresApp();
|
||||
FiresApp(this.store);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return new MaterialApp(
|
||||
return new StoreProvider(store: this.store, child:
|
||||
new MaterialApp(
|
||||
localizationsDelegates: [
|
||||
S.delegate,
|
||||
GlobalMaterialLocalizations.delegate,
|
||||
|
|
@ -38,6 +44,6 @@ class FiresApp extends StatelessWidget {
|
|||
introWidget, continueWidget, 'showInitialWizard-2018-06-27-01'),
|
||||
onGenerateTitle: (context) => S.of(context).appName,
|
||||
theme: firesTheme,
|
||||
routes: routes);
|
||||
routes: routes));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue