fix auto valid for receive screen (#834)

This commit is contained in:
Serhii 2023-03-17 13:33:45 +02:00 committed by GitHub
parent 7dfc5b23bc
commit df52516964
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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),