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