Поправил отзывчивость кнопок валют на экране валюты, исправил отображение названий валюты на экранах проведения покупки (рубль, рубля, рублей) для русской локали
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user