Fix on chain notes showing for other coins

This commit is contained in:
likho 2023-07-05 18:18:49 +02:00
parent 3ae04b6e5f
commit 1ce64cd157
3 changed files with 18 additions and 26 deletions

View file

@ -497,6 +497,7 @@ class _ConfirmTransactionViewState
const SizedBox( const SizedBox(
height: 12, height: 12,
), ),
if (coin == Coin.epicCash)
RoundedWhiteContainer( RoundedWhiteContainer(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
@ -515,9 +516,10 @@ class _ConfirmTransactionViewState
], ],
), ),
), ),
const SizedBox( if (coin == Coin.epicCash)
height: 12, const SizedBox(
), height: 12,
),
RoundedWhiteContainer( RoundedWhiteContainer(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,

View file

@ -1806,9 +1806,11 @@ class _SendViewState extends ConsumerState<SendView> {
style: STextStyles.smallMed12(context), style: STextStyles.smallMed12(context),
textAlign: TextAlign.left, textAlign: TextAlign.left,
), ),
if (coin == Coin.epicCash)
const SizedBox( const SizedBox(
height: 8, height: 8,
), ),
if (coin == Coin.epicCash)
ClipRRect( ClipRRect(
borderRadius: BorderRadius.circular( borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius, Constants.size.circularBorderRadius,
@ -1849,6 +1851,7 @@ class _SendViewState extends ConsumerState<SendView> {
), ),
), ),
), ),
if (coin == Coin.epicCash)
const SizedBox( const SizedBox(
height: 12, height: 12,
), ),

View file

@ -783,6 +783,7 @@ class _TransactionDetailsViewState
: const SizedBox( : const SizedBox(
height: 12, height: 12,
), ),
if (coin == Coin.epicCash)
RoundedWhiteContainer( RoundedWhiteContainer(
padding: isDesktop padding: isDesktop
? const EdgeInsets.all(16) ? const EdgeInsets.all(16)
@ -797,33 +798,20 @@ class _TransactionDetailsViewState
crossAxisAlignment: crossAxisAlignment:
CrossAxisAlignment.start, CrossAxisAlignment.start,
children: [ children: [
ConditionalParent( Text(
condition: kDebugMode, "On chain note",
builder: (child) { style: isDesktop
return Row( ? STextStyles
mainAxisAlignment: .desktopTextExtraExtraSmall(
MainAxisAlignment context)
.spaceBetween, : STextStyles.itemSubtitle(
children: [ context),
child,
],
);
},
child: Text(
"On chain note",
style: isDesktop
? STextStyles
.desktopTextExtraExtraSmall(
context)
: STextStyles.itemSubtitle(
context),
),
), ),
const SizedBox( const SizedBox(
height: 8, height: 8,
), ),
SelectableText( SelectableText(
_transaction.otherData!, _transaction.otherData ?? "",
style: isDesktop style: isDesktop
? STextStyles ? STextStyles
.desktopTextExtraExtraSmall( .desktopTextExtraExtraSmall(
@ -854,7 +842,6 @@ class _TransactionDetailsViewState
: const SizedBox( : const SizedBox(
height: 12, height: 12,
), ),
RoundedWhiteContainer( RoundedWhiteContainer(
padding: isDesktop padding: isDesktop
? const EdgeInsets.all(16) ? const EdgeInsets.all(16)