Epic UI fixes, add missing data

This commit is contained in:
likho 2024-02-05 10:34:10 +02:00
parent f655b51e88
commit 03f7fa1a1e

View file

@ -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 isDesktop
? const _Divider() ? const _Divider()
: const SizedBox( : const SizedBox(
@ -996,7 +1047,9 @@ class _TransactionV2DetailsViewState
.watch( .watch(
pTransactionNote( pTransactionNote(
( (
txid: _transaction.txid, txid: (coin == Coin.epicCash) ?
_transaction.slateId as String
: _transaction.txid,
walletId: walletId walletId: walletId
), ),
), ),