natintosh / intl_phone_number_input

MIT License
166 stars 510 forks source link

Country code is same then country flag is change automatically after profile updating #330

Open idamsel opened 2 years ago

idamsel commented 2 years ago

Describe the bug

I have an issue regarding this package is that , If country code is same for more than 2 countries (For ex :- US and Canada), then country flag is change automatically after I update my profile screen. If I select my country code +1 with USA it display well at first time with proper USA flag , but after it if I enter my profile screen again then I get country code +1 with Canada flag even if I don't change it from USA to Canada.

Package version intl_phone_number_input: ^0.7.0+2

Flutter version [√] Flutter (Channel stable, 3.0.2, on Microsoft Windows [Version 10.0.22000.675], locale en-IN)

Expected behavior

Country flag will remain same if country codes are same for more than 2 country. (US and Canada)

Targeted platforms (please complete the following information):

bynalab commented 2 years ago

@iamvaidarbhi Are you getting back your phone by the country code?