Skip to content

EditableText extended grapheme cluster error: StateError at _GrowableList.last #117418

@justinmc

Description

@justinmc

The following error has been reported at the given line:

StateError at _GrowableList.last

selectionBoxes.last : selectionBoxes.first;

There is no known repro, but it seems that getBoxesForSelection is returning an empty List in some cases. Reading the docs, this is possible when the selection does not include a full character, which can happen with extended grapheme clusters and surrogate pairs.

References

PR that caused this: #102992
Google internal bug b/260121913

Metadata

Metadata

Assignees

Labels

a: text inputEntering text in a text field or keyboard related problems

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions