- Fixed bug where region was not passed to
parse
call ingetFormattedParseResult
.
- BREAKING: renamed
hideCountryCode
toinputContainsCountryCode
inLibPhonenumberTextFormatter
. - BREAKING: renamed
removeCountryCode
toremoveCountryCodeFromResult
and added new parameterinputContainsCountryCode
informatNumberSync()
. Use this to accurately describe if the input number contains a country code and whether or not the result should strip that country code out.
- Improvements to how masking is performed.
- Now allows for additional digits to be added on the end of the input mask for countries with varying number patterns.
- Fix number parsing issue by not attaching a leading '+' anymore. This fixes the problem parsing GB numbers starting with 07 which didn't have the 44 country code at the start.
- Bumped libphonenumber version on android.
- Nullsafety for main version.
- UK numbers will correctly remove leading 0 now on international numbers.
- Bumped underlying native lib versions. PhoneNumberKit -> 3.3.3, libphonenumber -> 8.12.17.
- Add constraint for flutter v1.10.0.
- Migrate to null safety.
- Update iOS minimum deployment to 9.0.
- Bumped PhoneNumberKit to 3.3 (iOS) and libphonenumber to 8.12.11 (Android).
- Fixed overflows in example app on smaller devices.
- Bump android compileSdkVersion to 29.
- Downgrade Android minSdkVersion version from 21 to 18 and bump libphonenumber version from 8.12.5 to 8.12.10 via #3.
- Fixed bug where device locale was not correctly detected on iOS.
- Hide debug printing.
- Added ability to override country mask/phone data. Added fix for UK international numbers when someone pastes in a national format.
- Fixed bug when formatting the very first number where it wouldn't move the text selection to the very end.
- Fixed bug where realtime formatter didn't ignore leading country code if present when overrideSkipCountryCode was provided.
- Fixed formatParsePhonenumberAsync to return the correct phone number international/national format based on what was requested.
- Fixes to documentation.
- Can now format based on the national or international format of a country's phone number.
- Added ability to format numbers as either mobile or fixed line, while defaulting to mobile.
- Cleanup
- Fixed bugs in the way masking is applied which caused numbers to be formatted incorrectly to their mask.
- Removed print statements
- Countries list in CountryManager is now read-only outside of the lib
- Added example gifs
- Package metadata fixes
- Initial release