-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
The latest release broke PhoneInputFormatter. A simplified version of my code is:
return TextFormField( textCapitalization: TextCapitalization.none, keyboardType: TextInputType.phone, inputFormatters: [ PhoneInputFormatter( onCountrySelected: (country) { _phoneCountryCode = country?.countryCode; }, ) ], controller: widget.controller, focusNode: _focusNode, ); }
Previously, typing "16309999999" would cause the phone to be formatted as "+1 (630) 999 9999". Now, it detects that this is a U.S. phone number, but it messes up the formatting and drops the trailing digit: "(163) 099 9999".
I believe the culprit is commit 4798c2d.
PrimakPavel and ezra-gunn
Metadata
Metadata
Assignees
Labels
No labels