mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
CWA-168 | app version added to list tile with background color
This commit is contained in:
parent
50d857f23a
commit
9355b2a1f4
1 changed files with 10 additions and 11 deletions
|
@ -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)
|
||||
),
|
||||
)
|
||||
],
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue