cedvdb / phone_form_field

Flutter phone number input
https://pub.dev/packages/phone_form_field
MIT License
72 stars 100 forks source link

How to disable the auto removal of leading zero for specific countries' phone number ? #250

Closed dhiaCodes closed 2 weeks ago

dhiaCodes commented 5 months ago

Currently, the package automatically removes the leading zero from phone numbers, which is maybe a standard practice for many countries. In countries like France, the leading zero in phone numbers is significant and should not be removed. Is there way to disable this ?

cedvdb commented 5 months ago

This is done via the package phone_numbers_parser. The 0 in France may be standard practice but I believe it is not significant when preceeded by the country dial code +33 .

cedvdb commented 2 weeks ago

there is currently no way to do this, feel free to add this in the appropriate package (phone_numbers_parser)