Skip to content

fix: Workaround for the TextBoxComponent entering an endless loop#3939

Merged
erickzanardo merged 1 commit into
mainfrom
fix/erick/text-box-web-render-workaround
Jul 1, 2026
Merged

fix: Workaround for the TextBoxComponent entering an endless loop#3939
erickzanardo merged 1 commit into
mainfrom
fix/erick/text-box-web-render-workaround

Conversation

@erickzanardo

@erickzanardo erickzanardo commented Jul 1, 2026

Copy link
Copy Markdown
Member

Description

This PR adds an workaround for and issue that was cause the TextBoxComponent enter a never ending loop when rendering some texts.

This is being cause due the result TextRange from the TextPainter sometimes reporting an incorrect result, very mostly likely because of the floating number innacuracy in javascript.

An issue was open in the Flutter repository to track this issue: flutter/flutter#188874

This workaround could be removed/revisited depending on the outcome of such issue.

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

Closes #3938

@erickzanardo erickzanardo requested a review from a team July 1, 2026 18:29
@erickzanardo erickzanardo merged commit 0b42aa0 into main Jul 1, 2026
10 checks passed
@erickzanardo erickzanardo deleted the fix/erick/text-box-web-render-workaround branch July 1, 2026 20:11
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

Successfully merging this pull request may close these issues.

fix: TextBoxComponent crashes with the text in the examples

2 participants