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 when collapsing on an emoji #39

Closed
LeGoffMael opened this issue Oct 5, 2022 · 3 comments
Closed

Error when collapsing on an emoji #39

LeGoffMael opened this issue Oct 5, 2022 · 3 comments

Comments

@LeGoffMael
Copy link

When the last character of the line that is collapsed is an emoji, an error is thrown :

════════ Exception caught by painting library ══════════════════════════════════
The following ArgumentError was thrown while building a TextSpan:
Invalid argument(s): string is not well-formed UTF-16
@LeGoffMael
Copy link
Author

This error occurs only when a preDataText param is specified

@neo1125
Copy link

neo1125 commented Nov 17, 2022

I guess this is the problem

dart-lang/sdk#35798

widget.data.substring(0, endIndex) => String.fromCharCodes(widget.data.runes, 0, endIndex)

@Faiizii
Copy link

Faiizii commented Nov 29, 2022

Can you please upload minimum reproducible code?

takinok added a commit to takinok/readmore that referenced this issue Apr 9, 2024
jonataslaw added a commit that referenced this issue Apr 13, 2024
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

3 participants