mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-13 06:04:34 +00:00
reorder firo balance sheet on mobile
This commit is contained in:
parent
f51cf2e395
commit
703863cab8
1 changed files with 27 additions and 25 deletions
|
@ -121,7 +121,8 @@ class WalletBalanceToggleSheet extends ConsumerWidget {
|
|||
height: 24,
|
||||
),
|
||||
BalanceSelector(
|
||||
title: "Available balance",
|
||||
title:
|
||||
"Available${balanceSecondary != null ? " public" : ""} balance",
|
||||
coin: coin,
|
||||
balance: balance.spendable,
|
||||
onPressed: () {
|
||||
|
@ -141,6 +142,31 @@ class WalletBalanceToggleSheet extends ConsumerWidget {
|
|||
value: _BalanceType.available,
|
||||
groupValue: _bal,
|
||||
),
|
||||
const SizedBox(
|
||||
height: 12,
|
||||
),
|
||||
BalanceSelector(
|
||||
title:
|
||||
"Full${balanceSecondary != null ? " public" : ""} balance",
|
||||
coin: coin,
|
||||
balance: balance.total,
|
||||
onPressed: () {
|
||||
ref.read(walletBalanceToggleStateProvider.state).state =
|
||||
WalletBalanceToggleState.full;
|
||||
ref.read(publicPrivateBalanceStateProvider.state).state =
|
||||
"Public";
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
onChanged: (_) {
|
||||
ref.read(walletBalanceToggleStateProvider.state).state =
|
||||
WalletBalanceToggleState.full;
|
||||
ref.read(publicPrivateBalanceStateProvider.state).state =
|
||||
"Public";
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
value: _BalanceType.full,
|
||||
groupValue: _bal,
|
||||
),
|
||||
if (balanceSecondary != null)
|
||||
const SizedBox(
|
||||
height: 12,
|
||||
|
@ -167,30 +193,6 @@ class WalletBalanceToggleSheet extends ConsumerWidget {
|
|||
value: _BalanceType.privateAvailable,
|
||||
groupValue: _bal,
|
||||
),
|
||||
const SizedBox(
|
||||
height: 12,
|
||||
),
|
||||
BalanceSelector(
|
||||
title: "Full balance",
|
||||
coin: coin,
|
||||
balance: balance.total,
|
||||
onPressed: () {
|
||||
ref.read(walletBalanceToggleStateProvider.state).state =
|
||||
WalletBalanceToggleState.full;
|
||||
ref.read(publicPrivateBalanceStateProvider.state).state =
|
||||
"Public";
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
onChanged: (_) {
|
||||
ref.read(walletBalanceToggleStateProvider.state).state =
|
||||
WalletBalanceToggleState.full;
|
||||
ref.read(publicPrivateBalanceStateProvider.state).state =
|
||||
"Public";
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
value: _BalanceType.full,
|
||||
groupValue: _bal,
|
||||
),
|
||||
if (balanceSecondary != null)
|
||||
const SizedBox(
|
||||
height: 12,
|
||||
|
|
Loading…
Reference in a new issue