More work with redux, and location edit (wip)
This commit is contained in:
parent
e97a5a1a9f
commit
e55edce3d4
17 changed files with 311 additions and 186 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue