MohamedAbd0/phone_text_field

Incorrect Flag when editing the phone number with country codes start +1

Opened this issue · 0 comments

Describe the bug

If the country code is same for more than 2 countries, for example US and Canada or where country code starts with +1 for countries like Bermuda, Antigua, Guam, Puerto Rico, then the country flag changes back to +1 Canada and the number also gets mis-formatted.

Package Version

phone_text_field: ^0.0.7

Expected behavior

  • Country flag will remain same if country codes are same for more than 2 countries. (US and Canada)
  • Number formatting is retained for countries like Bermuda, Antigua etc.