More work with redux, and location edit (wip)

This commit is contained in:
vjrj 2018-07-03 13:07:02 +02:00
parent e97a5a1a9f
commit e55edce3d4
17 changed files with 311 additions and 186 deletions

View file

@ -45,8 +45,11 @@ class FiresApp extends StatelessWidget {
home: new MaterialAppWithIntroHome(
introWidget, continueWidget, 'showInitialWizard-2018-06-27-01'),
onGenerateTitle: (context) {
String lang = Localizations.localeOf(context).languageCode;
this.store.dispatch(new OnUserLangAction(lang));
print('MaterialApp onGenerateTitle');
if (store.state.user.lang == null) {
String lang = Localizations.localeOf(context).languageCode;
this.store.dispatch(new OnUserLangAction(lang));
}
return S.of(context).appName;
},
theme: firesTheme,