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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 10 deletions

View file

@ -634,7 +634,7 @@ class ExchangePage extends BasePage {
borderColor: borderColor:
Theme.of(context).extension<ExchangePageTheme>()!.textFieldBorderTopPanelColor, Theme.of(context).extension<ExchangePageTheme>()!.textFieldBorderTopPanelColor,
currencyValueValidator: (value) { currencyValueValidator: (value) {
return !exchangeViewModel.isFixedRateMode return !exchangeViewModel.isFixedRateMode && value != S.of(context).all
? AmountValidator( ? AmountValidator(
isAutovalidate: true, isAutovalidate: true,
currency: exchangeViewModel.depositCurrency, currency: exchangeViewModel.depositCurrency,

View file

@ -272,9 +272,7 @@ class ExchangeCardState extends State<ExchangeCard> {
color: Theme.of(context) color: Theme.of(context)
.extension<ExchangePageTheme>()! .extension<ExchangePageTheme>()!
.hintTextColor), .hintTextColor),
validator: widget.hasAllAmount validator: _isAmountEditable
? widget.allAmountValidator
: _isAmountEditable
? widget.currencyValueValidator ? widget.currencyValueValidator
: null), : null),
), ),

View file

@ -22,8 +22,8 @@ MONERO_COM_PACKAGE="com.monero.app"
MONERO_COM_SCHEME="monero.com" MONERO_COM_SCHEME="monero.com"
CAKEWALLET_NAME="Cake Wallet" CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="4.15.1" CAKEWALLET_VERSION="4.15.2"
CAKEWALLET_BUILD_NUMBER=199 CAKEWALLET_BUILD_NUMBER=200
CAKEWALLET_BUNDLE_ID="com.cakewallet.cake_wallet" CAKEWALLET_BUNDLE_ID="com.cakewallet.cake_wallet"
CAKEWALLET_PACKAGE="com.cakewallet.cake_wallet" CAKEWALLET_PACKAGE="com.cakewallet.cake_wallet"
CAKEWALLET_SCHEME="cakewallet" CAKEWALLET_SCHEME="cakewallet"

View file

@ -18,8 +18,8 @@ MONERO_COM_BUILD_NUMBER=77
MONERO_COM_BUNDLE_ID="com.cakewallet.monero" MONERO_COM_BUNDLE_ID="com.cakewallet.monero"
CAKEWALLET_NAME="Cake Wallet" CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="4.15.1" CAKEWALLET_VERSION="4.15.2"
CAKEWALLET_BUILD_NUMBER=218 CAKEWALLET_BUILD_NUMBER=219
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet" CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"
HAVEN_NAME="Haven" HAVEN_NAME="Haven"

View file

@ -21,8 +21,8 @@ MONERO_COM_BUILD_NUMBER=10
MONERO_COM_BUNDLE_ID="com.cakewallet.monero" MONERO_COM_BUNDLE_ID="com.cakewallet.monero"
CAKEWALLET_NAME="Cake Wallet" CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="1.8.1" CAKEWALLET_VERSION="1.8.2"
CAKEWALLET_BUILD_NUMBER=58 CAKEWALLET_BUILD_NUMBER=59
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet" CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"
if ! [[ " ${TYPES[*]} " =~ " ${APP_MACOS_TYPE} " ]]; then if ! [[ " ${TYPES[*]} " =~ " ${APP_MACOS_TYPE} " ]]; then