Поправил отзывчивость кнопок валют на экране валюты, исправил отображение названий валюты на экранах проведения покупки (рубль, рубля, рублей) для русской локали

This commit is contained in:
kifio
2017-09-12 09:38:17 +03:00
parent e8788f72a3
commit d23ca1c991
16 changed files with 292 additions and 137 deletions

View File

@@ -61,7 +61,9 @@ class SettingsState extends BaseState<SettingsScreen> {
List<Widget> getSettings() {
List<Widget> widgets = new List();
for (MenuItem item in menuItems) {
widgets.add(getSettingsItem(item));
if (item.selectedValue != '') {
widgets.add(getSettingsItem(item));
}
}
return widgets;
}
@@ -77,15 +79,19 @@ class SettingsState extends BaseState<SettingsScreen> {
fontWeight: FontWeight.w600,
color: faqGrey,
fontSize: 14.0))),
new Text(getCurrencyTitle(int.parse(item.selectedValue)), style: new TextStyle(
fontWeight: FontWeight.w400, color: faqGrey, fontSize: 14.0)),
new Text(getCurrencyTitle(int.parse(item.selectedValue)),
style: new TextStyle(
fontWeight: FontWeight.w400,
color: faqGrey,
fontSize: 14.0)),
getArrow()
]))));
}
void onPressed(int position) {
switch (position) {
case 0 : return pushRoute(context, new CurrenciesScreen(helper, app));
case 0 :
return pushRoute(context, new CurrenciesScreen(helper, app));
}
}