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

iOS/android different libs #75

Closed vasilich6107 closed 2 months ago

vasilich6107 commented 2 months ago

Could you clarify the reason on using different libs for android and ios there could be different behavior and bugs which make the lib usage more like an unexpected thing

acoutts commented 2 months ago

The official libphonenumber library is only supported in java, c++ and javascript. Maybe you can make it work with dart:ffi with c++ but it's much easier to just use the more common PhoneNumberKIt for ios/macos.

vasilich6107 commented 2 months ago

Yeah, I'm planning to investigate