Merge branch 'master' into CWA-169-add-morph-exchange-to-the-app

This commit is contained in:
Oleksandr Sobol
2020-02-07 14:09:35 +02:00
18 changed files with 81 additions and 19 deletions
@@ -112,7 +112,7 @@ class DashboardPageBody extends StatefulWidget {
}
class DashboardPageBodyState extends State<DashboardPageBody> {
static final transactionDateFormat = DateFormat("MMM d, yyyy HH:mm");
static final transactionDateFormat = DateFormat("MMMM d, yyyy HH:mm");
final _connectionStatusObserverKey = GlobalKey();
final _balanceObserverKey = GlobalKey();
@@ -587,7 +587,7 @@ class DashboardPageBodyState extends State<DashboardPageBody> {
from: trade.from,
to: trade.to,
createdAtFormattedDate:
DateFormat("dd.MM.yyyy, H:m").format(trade.createdAt),
transactionDateFormat.format(trade.createdAt),
formattedAmount: formattedAmount);
}
@@ -14,4 +14,5 @@ class ItemHeaders {
static const support = 'Support';
static const termsAndConditions = 'Terms and conditions';
static const faq = 'FAQ';
static const version = 'Version';
}
+9 -5
View File
@@ -351,9 +351,9 @@ class SettingsFormState extends State<SettingsForm> {
final item = _items[index];
bool _isDrawDivider = true;
if (item.attribute == Attributes.header) {
if (item.attribute == Attributes.header || item == _items.last) {
_isDrawDivider = false;
} else if (index < _items.length - 1) {
} else {
if (_items[index + 1].attribute == Attributes.header) {
_isDrawDivider = false;
}
@@ -381,9 +381,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)
),
)
],
));