acoutts / flutter_libphonenumber

Leverages libphonenumber to allow for asynchronous and synchronous formatting of phone numbers in Flutter apps. Includes a TextInputFormatter to allow real-time AsYouType formatting.
MIT License
60 stars 73 forks source link

Fix removeCountryCode argument #20

Closed britov closed 3 years ago

acoutts commented 3 years ago

Thank you for the PR! What does this fix?

britov commented 3 years ago

Im fixed case final res = FlutterLibphonenumber().formatNumberSync('+14199139457', removeCountryCode: true); removeCountryCode don't work before

acoutts commented 3 years ago

Great fixes! Thanks a lot. Let me know when you've finalized it and ready for me to review/merge it in.

acoutts commented 3 years ago

All set for me to merge?

britov commented 3 years ago

yes

acoutts commented 3 years ago

Ah ok I see the confusion now. I've re-implemented and added tests to clarify this, using your PR as inspiration - thank you very much! Please try 1.2.0 now.