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
176 stars 478 forks source link

country code issue #370

Open Adelmu21 opened 6 months ago

Adelmu21 commented 6 months ago
MarekLipskij commented 6 months ago

I can confirm the above. It seems that the function to change country, does not affect the PhoneNumber model. The problem appears to be in the onChanged function. It creates a new PhoneNumber model which onCountryChanged does not have access to.