mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 03:06:29 +00:00
amount-related ui fixes for firo/spend-mints
This commit is contained in:
parent
5262bd8933
commit
b45146ac4b
1 changed files with 8 additions and 3 deletions
|
@ -539,13 +539,15 @@ class _ConfirmTransactionViewState
|
|||
),
|
||||
Builder(
|
||||
builder: (context) {
|
||||
final amount =
|
||||
transactionInfo["recipientAmt"] as Amount;
|
||||
final coin = ref.watch(
|
||||
managerProvider.select(
|
||||
(value) => value.coin,
|
||||
),
|
||||
);
|
||||
final amount = Amount(
|
||||
rawValue: BigInt.from(
|
||||
transactionInfo["recipientAmt"] as int),
|
||||
fractionDigits: coin.decimals);
|
||||
final externalCalls = ref.watch(
|
||||
prefsChangeNotifierProvider.select(
|
||||
(value) => value.externalCalls));
|
||||
|
@ -922,7 +924,10 @@ class _ConfirmTransactionViewState
|
|||
localeServiceChangeNotifierProvider
|
||||
.select((value) => value.locale),
|
||||
);
|
||||
final amount = transactionInfo["recipientAmt"] as Amount;
|
||||
final amount = Amount(
|
||||
rawValue: BigInt.from(
|
||||
transactionInfo["recipientAmt"] as int),
|
||||
fractionDigits: coin.decimals);
|
||||
return Text(
|
||||
"${(amount + fee).localizedStringAsFixed(
|
||||
locale: locale,
|
||||
|
|
Loading…
Reference in a new issue