mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-24 12:29:37 +00:00
hide exchange options until amount is entered
This commit is contained in:
parent
9df7894142
commit
d26ea4c284
1 changed files with 18 additions and 14 deletions
|
@ -1308,9 +1308,13 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
|
||||||
RateTypeToggle(
|
RateTypeToggle(
|
||||||
onChanged: onRateTypeChanged,
|
onChanged: onRateTypeChanged,
|
||||||
),
|
),
|
||||||
|
if (ref.read(exchangeFormStateProvider).fromAmount != null &&
|
||||||
|
ref.read(exchangeFormStateProvider).fromAmount != Decimal.zero)
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 8,
|
height: 8,
|
||||||
),
|
),
|
||||||
|
if (ref.read(exchangeFormStateProvider).fromAmount != null &&
|
||||||
|
ref.read(exchangeFormStateProvider).fromAmount != Decimal.zero)
|
||||||
ExchangeProviderOptions(
|
ExchangeProviderOptions(
|
||||||
from: ref.watch(exchangeFormStateProvider).fromTicker,
|
from: ref.watch(exchangeFormStateProvider).fromTicker,
|
||||||
to: ref.watch(exchangeFormStateProvider).toTicker,
|
to: ref.watch(exchangeFormStateProvider).toTicker,
|
||||||
|
|
Loading…
Reference in a new issue