mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
Don't show exchange providers until amount is entered
This commit is contained in:
parent
4f78dfba02
commit
16ca32a882
1 changed files with 14 additions and 6 deletions
|
@ -953,12 +953,20 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
|
|||
onChanged: onRateTypeChanged,
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: isDesktop ? 20 : 12),
|
||||
child: ExchangeProviderOptions(
|
||||
fixedRate: rateType == ExchangeRateType.fixed,
|
||||
reversed: ref.watch(efReversedProvider),
|
||||
),
|
||||
AnimatedSize(
|
||||
duration: const Duration(milliseconds: 300),
|
||||
child: ref.watch(efSendAmountProvider) == null &&
|
||||
ref.watch(efReceiveAmountProvider) == null
|
||||
? const SizedBox(
|
||||
height: 0,
|
||||
)
|
||||
: Padding(
|
||||
padding: EdgeInsets.only(top: isDesktop ? 20 : 12),
|
||||
child: ExchangeProviderOptions(
|
||||
fixedRate: rateType == ExchangeRateType.fixed,
|
||||
reversed: ref.watch(efReversedProvider),
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
height: isDesktop ? 20 : 12,
|
||||
|
|
Loading…
Reference in a new issue