mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-03 09:29:48 +00:00
fix auto valid for receive screen (#834)
This commit is contained in:
parent
7dfc5b23bc
commit
df52516964
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ class AmountValidator extends TextValidator {
|
||||||
AmountValidator({required CryptoCurrency currency, bool isAutovalidate = false}) {
|
AmountValidator({required CryptoCurrency currency, bool isAutovalidate = false}) {
|
||||||
symbolsAmountValidator =
|
symbolsAmountValidator =
|
||||||
SymbolsAmountValidator(isAutovalidate: isAutovalidate);
|
SymbolsAmountValidator(isAutovalidate: isAutovalidate);
|
||||||
decimalAmountValidator = DecimalAmountValidator(currency: currency);
|
decimalAmountValidator = DecimalAmountValidator(currency: currency,isAutovalidate: isAutovalidate);
|
||||||
}
|
}
|
||||||
|
|
||||||
late final SymbolsAmountValidator symbolsAmountValidator;
|
late final SymbolsAmountValidator symbolsAmountValidator;
|
||||||
|
@ -29,7 +29,7 @@ class SymbolsAmountValidator extends TextValidator {
|
||||||
}
|
}
|
||||||
|
|
||||||
class DecimalAmountValidator extends TextValidator {
|
class DecimalAmountValidator extends TextValidator {
|
||||||
DecimalAmountValidator({required CryptoCurrency currency, bool isAutovalidate = false})
|
DecimalAmountValidator({required CryptoCurrency currency, required bool isAutovalidate })
|
||||||
: super(
|
: super(
|
||||||
errorMessage: S.current.decimal_places_error,
|
errorMessage: S.current.decimal_places_error,
|
||||||
pattern: _pattern(currency),
|
pattern: _pattern(currency),
|
||||||
|
|
Loading…
Reference in a new issue