Merge pull request #745 from cypherstack/epic-ui-fixes

Epic UI fixes, add missing data
This commit is contained in:
Diego Salazar 2024-02-06 20:51:02 -07:00 committed by GitHub
commit cbbcf4dccc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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
), ),
), ),