mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-24 03:15:50 +00:00
put currently selected fiat's minAmount and maxAmount in buy_form var
This commit is contained in:
parent
e688ec2176
commit
fa96f5ed14
1 changed files with 5 additions and 0 deletions
|
@ -92,6 +92,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
||||||
bool _hovering1 = false;
|
bool _hovering1 = false;
|
||||||
bool _hovering2 = false;
|
bool _hovering2 = false;
|
||||||
|
|
||||||
|
Decimal minFiat = Decimal.fromInt(50);
|
||||||
|
Decimal maxFiat = Decimal.fromInt(20000);
|
||||||
|
|
||||||
void fiatFieldOnChanged(String value) async {}
|
void fiatFieldOnChanged(String value) async {}
|
||||||
|
|
||||||
void cryptoFieldOnChanged(String value) async {}
|
void cryptoFieldOnChanged(String value) async {}
|
||||||
|
@ -227,6 +230,8 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
||||||
onSelected: (fiat) {
|
onSelected: (fiat) {
|
||||||
setState(() {
|
setState(() {
|
||||||
selectedFiat = fiat;
|
selectedFiat = fiat;
|
||||||
|
minFiat = fiat.minAmount != minFiat ? fiat.minAmount : minFiat;
|
||||||
|
maxFiat = fiat.maxAmount != maxFiat ? fiat.maxAmount : maxFiat;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue