From 03f7fa1a1e94eeb8b8fffe70f123eae889bea40b Mon Sep 17 00:00:00 2001 From: likho Date: Mon, 5 Feb 2024 10:34:10 +0200 Subject: [PATCH] Epic UI fixes, add missing data --- .../tx_v2/transaction_v2_details_view.dart | 57 ++++++++++++++++++- 1 file changed, 55 insertions(+), 2 deletions(-) diff --git a/lib/pages/wallet_view/transaction_views/tx_v2/transaction_v2_details_view.dart b/lib/pages/wallet_view/transaction_views/tx_v2/transaction_v2_details_view.dart index d32bd7d08..d44588b3c 100644 --- a/lib/pages/wallet_view/transaction_views/tx_v2/transaction_v2_details_view.dart +++ b/lib/pages/wallet_view/transaction_views/tx_v2/transaction_v2_details_view.dart @@ -909,7 +909,58 @@ class _TransactionV2DetailsViewState ], ), ), - + if (coin == Coin.epicCash) + RoundedWhiteContainer( + padding: isDesktop + ? const EdgeInsets.all(16) + : const EdgeInsets.all(12), + child: Row( + mainAxisAlignment: + MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + child: Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + Text( + "On chain note", + style: isDesktop + ? STextStyles + .desktopTextExtraExtraSmall( + context) + : STextStyles.itemSubtitle( + context), + ), + const SizedBox( + height: 8, + ), + SelectableText( + _transaction.onChainNote ?? "", + style: isDesktop + ? STextStyles + .desktopTextExtraExtraSmall( + context) + .copyWith( + color: Theme.of(context) + .extension< + StackColors>()! + .textDark, + ) + : STextStyles.itemSubtitle12( + context), + ), + ], + ), + ), + if (isDesktop) + IconCopyButton( + data: _transaction.onChainNote ?? "", + ), + ], + ), + ), isDesktop ? const _Divider() : const SizedBox( @@ -996,7 +1047,9 @@ class _TransactionV2DetailsViewState .watch( pTransactionNote( ( - txid: _transaction.txid, + txid: (coin == Coin.epicCash) ? + _transaction.slateId as String + : _transaction.txid, walletId: walletId ), ),