Closed ReeKid2002 closed 1 year ago
Theres two ways to do this. Either write your own validator or just wrap it in Form widget and give it a key. When ever you want to validate the field do this
onPressed: (){ if (_formKey.currentState!.validate()) { //your function here if everything is okay. } },
@TOMSLAUS Not working for me
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 5 days. If you believe this issue is still relevant, please comment to keep it open. Thank you for your contributions.
Hi, Is there any way to validate for empty number?