fix: do not show fees on (ba)nano tx details screen

This commit is contained in:
julian 2023-06-08 09:11:43 -06:00
parent 4874ef5a63
commit 91fb2598c4

View file

@ -148,8 +148,7 @@ class _TransactionDetailsViewState
if (_transaction.numberOfMessages == 1) {
return "Receiving (waiting for sender)";
} else if ((_transaction.numberOfMessages ?? 0) > 1) {
return
"Receiving (waiting for confirmations)"; // TODO test if the sender still has to open again after the receiver has 2 messages present, ie. sender->receiver->sender->node (yes) vs. sender->receiver->node (no)
return "Receiving (waiting for confirmations)"; // TODO test if the sender still has to open again after the receiver has 2 messages present, ie. sender->receiver->sender->node (yes) vs. sender->receiver->node (no)
} else {
return "Receiving";
}
@ -963,11 +962,13 @@ class _TransactionDetailsViewState
],
),
),
if (coin != Coin.banano && coin != Coin.nano)
isDesktop
? const _Divider()
: const SizedBox(
height: 12,
),
if (coin != Coin.banano && coin != Coin.nano)
RoundedWhiteContainer(
padding: isDesktop
? const EdgeInsets.all(16)
@ -985,7 +986,9 @@ class _TransactionDetailsViewState
withUnitName: isTokenTx,
)
: "Pending"
: ref.watch(pAmountFormatter(coin)).format(
: ref
.watch(pAmountFormatter(coin))
.format(
fee,
withUnitName: isTokenTx,
);
@ -993,7 +996,8 @@ class _TransactionDetailsViewState
return Row(
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment:
CrossAxisAlignment.start,
children: [
Column(
crossAxisAlignment: