forex validation
This commit is contained in:
parent
f48680c2a5
commit
ec0c74a0a2
@ -1620,6 +1620,10 @@ class _ForexScreenState extends State<ForexScreen> {
|
||||
// keyboardType: TextInputType.number,
|
||||
onChanged: (value) {
|
||||
// errorMessages["deposit_on_cash"] = "";
|
||||
errorMessages.remove("deposit_on_cash");
|
||||
errorMessages.remove("deposit_on_card");
|
||||
// errorMessages["deposit_on_card"] = "";
|
||||
|
||||
_validateCashAmount(
|
||||
value,
|
||||
); // Call validation when text changes
|
||||
@ -1673,6 +1677,8 @@ class _ForexScreenState extends State<ForexScreen> {
|
||||
FilteringTextInputFormatter.digitsOnly, // ✅ Only allow digits
|
||||
],
|
||||
onChanged: (value) {
|
||||
errorMessages.remove("deposit_on_cash");
|
||||
errorMessages.remove("deposit_on_card");
|
||||
_validateCardAmount(
|
||||
value,
|
||||
); // Call validation when text changes
|
||||
|
||||
Loading…
Reference in New Issue
Block a user