Поправил верстку стрелки

This commit is contained in:
Ivan Murashov
2017-09-11 15:18:01 +03:00
parent 24fdfc15f6
commit e492a3a146
2 changed files with 8 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -40,7 +40,9 @@ class _SettingsState extends BaseState<SettingsScreen> {
Widget getScreenContent() {
return menuItems == null
? getBackground()
: new ListView(children: getSettings());
: new Container(
margin: new EdgeInsets.only(top: 16.0),
child: new ListView(children: getSettings()));
}
@override
@@ -59,10 +61,11 @@ class _SettingsState extends BaseState<SettingsScreen> {
Widget getSettingsItem(MenuItem item) {
return new Container(
height: 56.0,
padding: new EdgeInsets.only(left: 8.0),
child: (new FlatButton(onPressed: () => onPressed(menuItems.indexOf(item)),
child: new Row(children: <Widget>[
new Expanded(child: new Container(child: new Text(item.title))),
new Text(item.selectedValue),
new Expanded(child: new Text(item.title, style: new TextStyle(fontWeight: FontWeight.w600, color: faqGrey, fontSize: 14.0))),
new Text(item.selectedValue, style: new TextStyle(fontWeight: FontWeight.w400, color: faqGrey, fontSize: 14.0)),
getArrow()]))));
}
@@ -74,7 +77,8 @@ class _SettingsState extends BaseState<SettingsScreen> {
}
Widget getArrow() {
return new Image.asset(settings_arrow_png);
return new Container(margin: new EdgeInsets.only(left: 8.0),
child: new Image.asset(settings_arrow_png, height: 42.0));
}
@override