Skip to content
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

Error Range start 5 is out of text of length 1 #136

Closed
ferisetyo1 opened this issue Aug 4, 2023 · 10 comments
Closed

Error Range start 5 is out of text of length 1 #136

ferisetyo1 opened this issue Aug 4, 2023 · 10 comments

Comments

@ferisetyo1
Copy link

I have error when using thousandSeparator period and mantissalength 0
inputFormatters: [
CurrencyInputFormatter(
thousandSeparator: ThousandSeparator.Period,
mantissaLength: 0)
],

but is fine when :
inputFormatters: [
CurrencyInputFormatter(
thousandSeparator: ThousandSeparator.Comma,
mantissaLength: 0)
],

or
inputFormatters: [
CurrencyInputFormatter(
thousandSeparator: ThousandSeparator.Period,
mantissaLength: 2)
],

@keblato
Copy link

keblato commented Sep 14, 2023

Hi I have the same problem, mi output is file:///Users/kevin/fvm/versions/3.7.7/packages/flutter/lib/src/services/text_input.dart:963:12
range.start >= 0 && range.start <= text.length
"Range start 5 is out of text of length 1"

when mantissaLength is different from 0 I don´t have the exception but the number gets crazy with the comma in decimal number

@phanbaohuy96
Copy link

I have this issue also. any update?

@gokberkbar
Copy link

Hello, I have the same issue is there any update about this?

@gokhancvs
Copy link

any updates? @caseyryan

@ogedaysunar
Copy link

when will it be fixed? @caseyryan

@uygar
Copy link

uygar commented Nov 27, 2023

I have this issue too. Any updates ?

@caseyryan
Copy link
Owner

Hi guys,
thanks for the report but unfortunately I don't have time for this at the moment, and I don't know when I find it. So I can't promise anything

@fatihyuksell
Copy link

fatihyuksell commented Nov 27, 2023

I encounter this problem like other people. Can you give some priority to the solution?

@enesctn
Copy link

enesctn commented Nov 27, 2023

I have same problem. Any update?

@caseyryan
Copy link
Owner

Added a quick solution to 2.12.1
haven't really tested it though. But it fixes this issue

@caseyryan caseyryan reopened this Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants