phone_form_field 5.0.3 phone_form_field: ^5.0.3 copied to clipboard
Flutter phone input integrated with flutter internationalization
[5.0.3] 26/04/2022 #
- correctly remove listener from controller on dispose.
- fix error that happened when a controller was reused.
[5.0.2] 24/04/2022 #
- added el language (@kwstasarva)
- added rtl text direction support (@minusium)
[5.0.1] 05/04/2022 #
- fix inkwell overflow on error
- update docs
[5.0.0] 01/04/2022 #
- fix bug when copy pasting an incomplete phone number like "+33" the phone number was interpreted as
PhoneNumber(isoCode: FR, nsn: '33')
, now is correctlyPhoneNumber(isoCode: FR, nsn: '')
- updated country flags for better cultural accuracy
- Remove deprecated constructor, use factories instead
- Fix a cursor bug where the cursor would be misplaced
- Added
PageNavigator
for country selection. - Refactor of internal to accomodate for different UI for country selection
- Slight refactor of search process
- Added possibility of styling hint text (thanks @xvrh)
- [Breaking] use updated version of phone_number_parser which uses
IsoCode
for iso codes instead of plain string. - Added ci tests
[4.6.0] 01/04/2022 #
- Added factories for country selector navigator.
Example
CountrySelectorNavigator.dialog()
instead ofDialogCountrySelectorNavigator
as it's simpler for auto completion. - renamed param
selectorNavigator
tocountrySelectorNavigator
[4.5.3] 23 / 03 / 2022 #
- Fix inner border when there is a theme with focussed border
[4.5.2] 23 / 03 / 2022 #
- Export country translator
[4.5.1] 25 / 02 / 2022 #
- Added a property called 'countryCodeStyle' to allow the customization of the TextStyle of country code. Thanks @moazelsawaf
- Considering the size of the prefix icon ( if used ) while calculating the width of the CountryCodeChip InkWell. Thanks @moazelsawaf
[4.5.0] 18 / 02 / 2022 #
- Allow country code to be always visible when there is no label + an hint text
- Fix editing issue where the cursor was moving forward
[4.4.0] 07 / 11 / 2021 #
- upgraded phone parser dependency which fix some validity issues
- added swedish language
- added turkish language
[4.3.1] 23 / 10 / 2021 #
- fix a focus issue when opening country selection
- search bar in country selection is no auto focus false except for the web
[4.3.0] 18 / 10 / 2021 #
- Added most of textfield params to the phone input.
- Added method to select the current national number from the controller
- Changed how controllers worked under the hood
- Fix an issue where a phone number could not start with its country code
- uses phone_numbers_parser v4.1.0
[4.2.0] 16 / 10 / 2021 #
- [deprecated] PhoneValidator.invalid in favor of PhoneValidator.valid as the naming did not make sens and was backward.
[4.1.0 ] 15 / 10 / 2021 #
- expose onEditingComplete and textInputAction
- Update phone_number_parser library to 4.0.1, that library has breaking changes which could be reflected in the usage here
[4.0.0] 01 / 10 / 2021 #
Fixes #
- fix phone number type, thanks @emrsi
- fix reset and usage as a FormField in general
- fix onChanged & onSaved
- fix late initialization error when no country was selected in bottom sheet selector
UI #
- added localized phone formatter
- added DraggableModalBottomSheet, thanks @emrsi
Validation #
- Add PhoneValidator class to easily customize validation and defaults localization error messagees
- Add PhoneFormField
validator
property - [BREAKING CHANGE] Remove
PhoneFormField
propertieserrorText
&phoneNumberType
. Definevalidator
property instead withPhoneValidator.invalid*
Misc #
- refactored internals
- [Breaking] light parser was removed.
- [Breaking] exposed
autoFillHints
and removed thewithHint
param - [Breaking] renamed all instances of
dialCode
tocountryCode
as dial code was semantically incorrect.
Note #
This major version was a big rework of the library and is packed with fixes. Thus it was decided that it was not worth it to keep backward compatibility and therefor there are multiple breaking changes
[3.0.0] - 27 / 08 / 2021 #
- removed deprecated selector config
- added controllers to control the value
- added support for copy pasting
[2.0.0] - 16 / 08 / 2021 #
- deprecating SelectorConfig in favor of CountrySelectorNavigator
- added unit tests
- fixes for auto fill and copy paste
[1.2.0] - 25 / 05 / 2021 #
- Minor release introducing SelectorConfig.
- Fix problems with input focussing in cover sheet.
// cover sheet
PhoneFormField(
// ...
selectorConfig: SelectorConfigCoverSheet()
)
// dialog
PhoneFormField(
// ...
selectorConfig: SelectorConfigBottomSheet()
)
// bottom sheet
PhoneFormField(
// ...
selectorConfig: SelectorConfigBottomSheet(null)
)
[1.1.3] - 25 / 05 / 2021 #
- fix initial value not setting up correctly
- Added different types of Country selector display: SelectorDisplay.coversBody, SelectorDisplay.coversLower. The old value is coversLower and the new default value is coversBody.
[1.1.2] - 20 / 05 / 2021 #
- minor changelog fix.
[1.1.1] - 20 / 05 / 2021 #
- Added key to exported widgets.
[1.1.0] - 19 / 05 / 2021 #
- [Breaking] : some classes from the package phone_numbers_parser aren't exported anymore. Mostly classes that are not intended to be used with this package.
- Added example for widgets FlagDialCodeChip and CountrySelector
- Added default values for FlagDialCodeChip and removed some unused values.
[1.0.2] - 23 / 04 / 2021 #
- Upped dependency phone_numbers_parser to 0.1.3
- Added phoneNumberType input to validate against specific types (mobile, fixed line)
[1.0.1] - 23 / 04 / 2021 #
- Fixed validity issue (issue #1)
- Allow country to be searched by dial code (issue #2)
- Sort country search results to have more meaningful results at the top
- Upped dependency phone_numbers_parser to 0.1.0
[1.0.0] - 21 / 04 / 2021 #
- Reworked internal so the PhoneFormField behaves exactly like a TextFormField
[0.0.6] - 15 / 04 / 2021 #
- InputDecoration renamed to decoration to match formField
[0.0.5] - 15 / 04 / 2021 #
- Match cursor color with border color
[0.0.4] - 13 / 04 / 2021 #
- Default font size 14
[0.0.3] - 13 / 04 / 2021 #
- Breaking: inputBorder parameter replaced by inputDecoration for more maneability
[0.0.2] - 12 / 04 / 2021 #
- Fix unresponsive onSave
[0.0.1] - 12 / 04 / 2021 #
- initial release