- 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