Fix Exchange field not taking numbers (#1341)

This commit is contained in:
Omar Hatem
2024-03-21 15:42:16 +02:00
committed by GitHub
parent 5a7a0e01a7
commit ecb4f32cda
5 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -634,7 +634,7 @@ class ExchangePage extends BasePage {
borderColor:
Theme.of(context).extension<ExchangePageTheme>()!.textFieldBorderTopPanelColor,
currencyValueValidator: (value) {
return !exchangeViewModel.isFixedRateMode
return !exchangeViewModel.isFixedRateMode && value != S.of(context).all
? AmountValidator(
isAutovalidate: true,
currency: exchangeViewModel.depositCurrency,
@@ -272,9 +272,7 @@ class ExchangeCardState extends State<ExchangeCard> {
color: Theme.of(context)
.extension<ExchangePageTheme>()!
.hintTextColor),
validator: widget.hasAllAmount
? widget.allAmountValidator
: _isAmountEditable
validator: _isAmountEditable
? widget.currencyValueValidator
: null),
),