mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
CWA-168 | app version added to list tile with background color
This commit is contained in:
@@ -279,12 +279,7 @@ class SettingsFormState extends State<SettingsForm> {
|
||||
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<SettingsForm> {
|
||||
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<SettingsForm> {
|
||||
],
|
||||
);
|
||||
}),
|
||||
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)
|
||||
),
|
||||
)
|
||||
],
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user