From 9355b2a1f4c0997172e616e4a6912f5f8058f87c Mon Sep 17 00:00:00 2001 From: Oleksandr Sobol Date: Wed, 29 Jan 2020 19:22:25 +0200 Subject: [PATCH] CWA-168 | app version added to list tile with background color --- lib/src/screens/settings/settings.dart | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/lib/src/screens/settings/settings.dart b/lib/src/screens/settings/settings.dart index 906be11cd..39ad3d1d4 100644 --- a/lib/src/screens/settings/settings.dart +++ b/lib/src/screens/settings/settings.dart @@ -279,12 +279,7 @@ class SettingsFormState extends State { SettingsItem( onTaped: () => Navigator.pushNamed(context, Routes.faq), title: ItemHeaders.faq, - attribute: Attributes.arrow), - SettingsItem( - onTaped: () {}, - title: ItemHeaders.version, - widget: null, - attribute: Attributes.widget) + attribute: Attributes.arrow) ]); setState(() {}); } @@ -348,9 +343,9 @@ class SettingsFormState extends State { final item = _items[index]; bool _isDrawDivider = true; - if (item.attribute == Attributes.header) { + if (item.attribute == Attributes.header || index == _items.length - 1) { _isDrawDivider = false; - } else if (index < _items.length - 1) { + } else { if (_items[index + 1].attribute == Attributes.header) { _isDrawDivider = false; } @@ -378,9 +373,13 @@ class SettingsFormState extends State { ], ); }), - Container( - height: 20.0, - color: Theme.of(context).accentTextTheme.headline.backgroundColor, + ListTile( + contentPadding: EdgeInsets.only(left: 20.0), + title: Text( + settingsStore.itemHeaders[ItemHeaders.version], + style: TextStyle( + fontSize: 14.0, color: Palette.wildDarkBlue) + ), ) ], ));