iOS zxing scanner, iOS localization
This commit is contained in:
@@ -50,7 +50,7 @@ class SettingsState extends BaseState<SettingsScreen> {
|
||||
menuItems[2].title = StringsLocalization.logout();
|
||||
menuItems[0].selectedValue = info['currency'].toString();
|
||||
menuItems[1].selectedValue =
|
||||
info['locale'] == null ? StringsLocalization.locale() : info['locale'];
|
||||
info['locale'] == null ? StringsLocalization.localeCode : info['locale'];
|
||||
menuItems[2].selectedValue =
|
||||
info['token'] == null ? '' : getTokenSuffix(info['token']);
|
||||
});
|
||||
@@ -83,6 +83,7 @@ class SettingsState extends BaseState<SettingsScreen> {
|
||||
List<Widget> widgets = new List();
|
||||
for (int i = 0; i < menuItems.length; i++) {
|
||||
if (menuItems[i].selectedValue.toString() != '') {
|
||||
print('title : ${menuItems[i].title}');
|
||||
widgets.add(
|
||||
getSettingsItem(() => onPressed(menuItems.indexOf(menuItems[i])),
|
||||
menuItems[i].title,
|
||||
@@ -97,6 +98,7 @@ class SettingsState extends BaseState<SettingsScreen> {
|
||||
case 0 :
|
||||
return getCurrencyTitle(int.parse(menuItems[position].selectedValue));
|
||||
case 1 :
|
||||
print('val : ${menuItems[position].selectedValue}');
|
||||
return getLocaleTitle(menuItems[position].selectedValue);
|
||||
default :
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user