You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I needed a phone field that would also accept a country code. So, I pieced together a solution using flutter_country_picker and this package. Sharing it here in case (a) someone finds it useful and/or (b) it can be incorporated into this package itself
Upon form submission, you will see the following 3 attributes in form.value
phone : the actual number (minus country code)
country_code
country: ISO code for the country (like IN for India, US for USA etc.)
The fully qualified phone # will be +<country_code><phone>
I am sure the implementation can be improved / generalized by Danvick. I am only sharing what I could cook up for my limited needs
Hi,
I needed a phone field that would also accept a country code. So, I pieced together a solution using
flutter_country_picker
and this package. Sharing it here in case (a) someone finds it useful and/or (b) it can be incorporated into this package itselfUpon form submission, you will see the following 3 attributes in
form.value
phone
: the actual number (minus country code)country_code
country
: ISO code for the country (like IN for India, US for USA etc.)The fully qualified phone # will be
+<country_code><phone>
I am sure the implementation can be improved / generalized by Danvick. I am only sharing what I could cook up for my limited needs
Selecting country
... then using it to build a custom phone field
The text was updated successfully, but these errors were encountered: