intl_phone_number_input
intl_phone_number_input copied to clipboard
Incorrect Phone Number Validation for Numbers Starting with +1310
Describe the bug Users can only input a limited number of digits (4) after entering +1310, preventing them from entering longer, valid phone numbers.
Package version [0.7.4]
Flutter version Your current version of the Flutter SDK [3.22.0]
To Reproduce
- Open the phone number input field.
- Enter the country code +1 followed by 310.
- Attempt to input a phone number and observe the restriction to 4 digits.
Expected behavior The input field should accept the correct number of digits for phone numbers starting with +1310.
Screenshots If applicable, add screenshots to help explain your problem.
** Targeted platforms (please complete the following information):**
- OS [e.g. Android, iOS, ...]
- Web [✔ ]
Additional context We are using the intl_phone_number_input package in our Flutter project. This issue specifically affects phone numbers starting with +1310 but may also apply to other country codes. Correct validation is crucial to ensure a smooth user experience.