-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RangeError (index): Invalid value: Not in inclusive range 0..5: 6 #245
Comments
I get the same via Crashlytics
Package Version
Device |
I have the same error too because to enter for example letters on the phone field. |
Any solution for this problem? The same happens to me. |
I do not encounter a crash BUT in France the range includes +337 (not only +336) and |
We're seeing the same issue in Sentry with intl_phone_number_input: 0.7.1 Error is from the last line of code in this section of as_you_type_formatter.dart
Looks like it relates to having the cursor at the end of the input? Error details:
On multiple devices: Device: OnePlus8Pro, Android 11 |
I'm able to reliably reproduce on v0.7.1 and 0.7.2. Here's how:
I'd guess the length of input needed to trigger the error occurs as a function of the country code and that, somewhere in the call stack, the program isn't expecting the user to be entering hyphens when From my experience, the error is fairly benign meaning it doesn't cause a fatal app crash. Still, it pollutes the error tracking tools with noise making it hard to separate the wheat from the chaff. |
This still appears to be an issue with 0.7.3+1 |
This is still happening. To reproduce, enter any non-digit character into the field. It gets parsed out, but the offset does not get updated and it throws a Range error. As previously mentioned it happens in
|
This is again a trending error for me in Crashlytics with version
|
Hello guys, |
I got this same crash, the first time I tested the library. I can confirm that these steps to reproduce do work: #245 (comment) |
This happens when the format has space |
Exactly, I'm getting the issue with Brazilian Mobile Phone. |
Maybe, this can help: |
I got the same. And i have found out the problem due to the user tap to the |
Awesome, I'll test it as soon as possible |
Describe the bug
I just have a report from Sentry, no information about how to reproduce.
Package version
0.7.0+2
Flutter version
2.2.3
To Reproduce
Unknown, I just have the crash report from Sentry without anything else.
Expected behavior
Not to bug.
Targeted platforms (please complete the following information)
Here the full crash report (no information from my own code strangely):
Here how to input is used:
The text was updated successfully, but these errors were encountered: