- Fixed bug in
AsYouTypeFormatter
that could throw aRangeError
if the user typed non digit characters
- Updated minimum os version on iOS
- Updated dependencies
- Added pub example
- Updated dependency in libphonenumber
- Update AsYouTypeFormatter
- Replaced
headline
withheadlineSmall
in countries_search_list_widget.dart - Totally removed
getNameForNumber
- Updated libphonenumber and PhoneNumberToCarrierMapper on Android
- Removed dependency on libphonenumber
- Switch from libphonenumber-iOS to PhoneNumberKit on iOS
- Update libphonenumber.js file
- Depreciating
getNameForNumber
in future updates
- Massive thanks to the community
- Fixed validator defined with wrong type #207
- PlatformException thrown when isValidPhoneNumber is passed a 0 or 1 character phoneNumber parameter. #209
- Replaced
FutureOr<>
withFuture<>
- Co-contributors discussion now opened, view this link for more info.
- Null Safety Migration
- Upgraded dependencies
- Breaking Change Depreciated
SelectorConfig.backgroundColor
and replaced withTheme.of(context).canvasColor
- Fixed Dominican Republic dial_code at country_list.dart #196
- Fixed change country when initialValue is set with the widget #170
- Fixed PhoneNumberUtil.getNumberType on mobile and web #188
- Added translations for Turkish and Romanian #190
- Updated Taiwan country name #181
- Added style config for selector button #177
- Removed any potential duplicates on countries list #175
- Fixed ignore selector and text field spacing in prefixIcon mode #161
- π Well, Actually using cursorColor #160
- Fixed initialValue should not be formatted if formatInput is false #192
- Fixed Bottom Sheet RenderFlex overflow bug #187, similar to Search by Country name or dial code bug #197
- Updated README.md file to fix Web release does not recognize the packages #186
- Fixed onSaved callback in the InternationalPhoneNumberInput is not synchronous #180
- Cherry picked pending fixes and pull request from repo.
- Upgrade dependencies
- cherrypick pending fixes from repo
- Added support for Flutter Web π₯ π₯ π₯ π π π .
- Added textAlign, textAlignVertical.
- Fixed French translation of Egypt.
- Added option to make selector button a prefix icon in
SelectorConfig
. - Added
cursorColor
option. - Added
scrollPadding
option. - Added new language translations for Serbia, with two scripts.
- Updated onSaved into
ValueChange<PhoneNumber>
. now onSaved returns aPhoneNumber
object. - Added
keyboardType
option and improvements on iOS keyboard, see #147, #148 for more details. - Added locale zh-TW.
- Added locale ar.
- Added support of nb and nn locale.
- Fixed issue with AsYouType formatter injecting country dial code on every input for phone numbers with North American Numbering Plan.
- Fixed issue with Selector Button onTap when enable is false.
- Breaking Change for v0.7.0,
SelectorConfig.backgroundColor
would be removed and replaced withTheme.of(context).canvasColor
. - Added
spaceBetweenSelectorAndTextField
for padding between selector button and text field. - Fixed Bug with cursor position on typing, see #130 for illustration and more information.
- Fixed Bug with selector button country restoring to initialValue after updating/changing value, see #155 for more information.
- Tap outside
selectorType
PhoneInputSelectorType.BOTTOM_SHEET
now dismisses the dialog.
- Fixed issue with pub.dev analysis
- Updated dependencies
- Breaking Change Changed autoValidate to autoValidateMode
- Added getPhoneNumberType static method to PhoneNumber.
- Added bottomSheet background color property to SelectorConfig
- Updated Egypt country name
- Enable alpha 3 code in country search criteria
- Added country comparator to SelectorConfig to sort Country on initial load
// Should return -1 if A precedes B, 0 if A is equal to B and 1 if B precedes A
- Fixed issue with pt_br.png asset not loading
- Fixed issue with text input autoFocus when formatInput is set to false
- Added new locale translations for ["sk" "se" "pl" "no" "ja" "it" "zh" "nl" "de" "fr" "es" "en" "pt_BR"]
- Made possible by @SimonFM and @diefferson
- Added selector configuration
selectorConfig
parameter which enables you to- Add emoji flag support
- Add option to turn off flags
- Breaking Change
selectorType
has been moved toselectorConfig
- Fixed autoFocus search search field
- Fixed keyboard covers bottom sheet while search
- Breaking Change Removed factory constructors
withCustomBorder
andwithCustomDecoration
- Removed selector button left padding
- Fixed setState() or markNeedsBuild called during build
- Fixed incorrect cursor positioning while editing
- Added maxLength property to set length limit
- Fixed getter 'hash' was called on null.
- Updated package documentation
- Added selector button padding on error
- Fixed issue with first digit getting removed
- Fixed issue with first digit getting removed
- Fixed issue with keyboard and multiple rebuilds
- Fixed issue with PhoneInputSelectorType.DIALOG
- Updated Cayman Island dial code
- Added selectorTextStyle parameter
- Improve load up time
- Fixed NoSuchMethodError: The getter 'owner' was called on null
- Fixed NoSuchMethodError: The getter 'owner' was called on null
- Fixed issue with Validation error on initial value
- Added new initialValue parameter that accepts a PhoneNumber object
- Added autoFocus option
- Added Keys and Helper class for testing
- Updated static method getParsableNumber from PhoneNumber
- Removed initialCountry2letterCode parameter
- Fixed issue with textController calling disposed if user defines the controller
- Fixed issue with with country picker alignment gone wrong when a single country is set
- Fixed NullPointerException thrown on getRegionInfoFromPhoneNumber
- Added support for RTL languages to be presented in the correct alignment
- Added new mode selection for dropdown, bottom sheet and dialog
- Added country names to bottom sheet and dialog country list
- Added search box to filter countries in the bottom sheet and country list
- Added For the above - an option to pass in a search box decoration
- Added ignoreBlank boolean to avoid input error message when left blank
- Added nameTranslations map to country model as preparation for future country name translation support
- Added Also for the above added the locale String field option (When translations will be supported this will define the requested translation language e.g. en_US, fr_FR etc.)
- Added function to get initial country ISO2 code when the input has pre-defined phone number (good for an "edit" input)
- Improved loading time for country list
- Changed When only one country passed in there is no need for any selector widget so a plain "Item" widget will be shown instead
- Bug fixes
- Improvement for reliability
- As You Type Formatter: The Package now formats the input to it's selected national format
- You can now disable input formatting by setting inputFormat to false
- Replaced TextField with
- AutoValidate
- TextStyle
- onInputChanged now returns a new PhoneNumber Model
- You can create a PhoneNumber object from PhoneNumber.getRegionInfoFromPhoneNumber(String phoneNumber, [String isoCode]);
- You can now parse phoneNumber by calling PhoneNumber.getParsableNumber(String phoneNumber, String isoCode) or
PhoneNumber Reference
.parseNumber()
- Bug fixed
- TextField now formats whenever TextEditingController Text is changed
- Added TextEditingController
- Added KeyboardActionType
- Added callback that listens to keyboard action
- Minor bug fixed
-
- Added focus node
- Custom list of countries e.g. ['NG', 'GH', 'BJ' 'TG', 'CI']
- Country Flag and Logo now formatted
- Minor changes to the source file
- Critical bug fixed caused by changing source files and packages
- Minor changes to the source file
- Added example
- Updated README.md
- Added examples to README.md
- Critical bug fixed
- Updated README.md
- Updated README.md
- Fixed issues with text input not validating
- Fixed issues with text input not parsing
- Critical bug fixed
- Removed example
- Fixed countries.json assets not loading
- Critical bug fixed
- Fixed image assets not loading
- Critical bug fixed
- Added examples
- Fixed image assets not loading
- Critical bug fixed
- Updated README.md
- Updated README.md
- Added support for custom input decoration
- Added support for custom input border