mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
CWA-169 | added DateFormat to trade.createdAt in Trade Details page
This commit is contained in:
@@ -8,6 +8,7 @@ import 'package:cake_wallet/src/stores/exchange_trade/exchange_trade_store.dart'
|
||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||
import 'package:cake_wallet/src/screens/transaction_details/standart_list_item.dart';
|
||||
import 'package:cake_wallet/src/screens/transaction_details/standart_list_row.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
class TradeDetailsPage extends BasePage {
|
||||
@override
|
||||
@@ -16,6 +17,8 @@ class TradeDetailsPage extends BasePage {
|
||||
@override
|
||||
bool get isModalBackButton => true;
|
||||
|
||||
final createdAtFormat = DateFormat('yyyy-MM-dd HH:mm:ss');
|
||||
|
||||
@override
|
||||
Widget body(BuildContext context) {
|
||||
final exchangeStore = Provider.of<ExchangeTradeStore>(context);
|
||||
@@ -43,7 +46,7 @@ class TradeDetailsPage extends BasePage {
|
||||
if (trade.createdAt != null) {
|
||||
items.add(StandartListItem(
|
||||
title: S.of(context).trade_details_created_at,
|
||||
value: trade.createdAt.toString()));
|
||||
value: createdAtFormat.format(trade.createdAt).toString()));
|
||||
}
|
||||
|
||||
if (trade.from != null && trade.to != null) {
|
||||
|
||||
Reference in New Issue
Block a user