vanshg395 / intl_phone_field

A customised Flutter TextFormField to input international phone number along with country code.
https://pub.dev/packages/intl_phone_field
MIT License
177 stars 507 forks source link

Empty Number Validator #306

Closed ReeKid2002 closed 1 year ago

ReeKid2002 commented 1 year ago

Hi, Is there any way to validate for empty number?

TOMSLAUS commented 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. } },

ReeKid2002 commented 1 year ago

@TOMSLAUS Not working for me

github-actions[bot] commented 1 year ago

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.