mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
use min amounts as default text
This commit is contained in:
parent
7c0bfce3c2
commit
ff5d5784a1
1 changed files with 4 additions and 1 deletions
|
@ -936,7 +936,10 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
||||||
color: Theme.of(context).extension<StackColors>()!.textDark,
|
color: Theme.of(context).extension<StackColors>()!.textDark,
|
||||||
),
|
),
|
||||||
key: const Key("buyAmountInputFieldTextFieldKey"),
|
key: const Key("buyAmountInputFieldTextFieldKey"),
|
||||||
controller: _buyAmountController..text = '50.00',
|
controller: _buyAmountController
|
||||||
|
..text = _BuyFormState.buyWithFiat
|
||||||
|
? _BuyFormState.minFiat.toStringAsFixed(2) ?? '50.00'
|
||||||
|
: _BuyFormState.minCrypto.toStringAsFixed(8),
|
||||||
focusNode: _buyAmountFocusNode,
|
focusNode: _buyAmountFocusNode,
|
||||||
keyboardType: Util.isDesktop
|
keyboardType: Util.isDesktop
|
||||||
? null
|
? null
|
||||||
|
|
Loading…
Reference in a new issue