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
177 stars 507 forks source link

countries is no longer use "String" #288

Closed JmyW closed 1 year ago

JmyW commented 1 year ago

Hi The v3.2.0 change the countries, no longer List<String> but List<Country>. Could you teach me how to set countries on the version? countries: const ['TW', 'US'] ??

========================================= IntlPhoneField( controller: textCtlMobile, focusNode: focusNodeMobile, textInputAction: TextInputAction.next, keyboardType: TextInputType.phone, style: const TextStyle(color: MyColors.textColorBlack, fontSize: fontSz6), initialCountryCode: initialCountryCd, countries: const ['TW', 'US'], ... ...

prkhrv commented 1 year ago

Same issue here, let me know if you have figured it out

JmyW commented 1 year ago

Sorry I have not. My shorten solution is to keep on v3.1.0 :( If you figure out, please let me know too. Thanks in advance.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 5 days. If you believe this issue is still relevant, please comment to keep it open. Thank you for your contributions.

mbebs commented 1 year ago

Anyone found a solution for this? I just need an example of how to list the countries.

mbebs commented 11 months ago

Please can someone help provide a simple solution