Skip to content

Conversation

@LongCatIsLooong
Copy link
Contributor

@LongCatIsLooong LongCatIsLooong commented May 28, 2024

Manual request (merge conflicts in the test file) for cherry-picking #149042 to stable

Issue Link:

What is the link to the issue this cherry-pick is addressing?

#148692

Changelog Description:

Explain this cherry pick in one line that is accessible to most Flutter developers. See best practices for examples

Fixes an EditableText crash that happens with a custom TextEditingController which only implements the TextEditingController interface.

Impact Description:

What is the impact (ex. visual jank on Samsung phones, app crash, cannot ship an iOS app)? Does it impact development (ex. flutter doctor crashes when Android Studio is installed), or the shipping production app (the app crashes on launch)

Production apps crash if the user gives an EditableText a custom TextEditingControllor class that implements TextEditingControllor.

Workaround:

Is there a workaround for this issue?

The crash does not happen if the user extends TextEditingControllor, but it's not always desirable / feasible. The class could be already extending a different base class.

Risk:

What is the risk level of this cherry-pick?

  • Low
  • Medium
  • High

Test Coverage:

Are you confident that your fix is well-tested by automated tests?

  • Yes
  • No

Validation Steps:

What are the steps to validate that this fix works?

Run the test in the PR, or follow the repro steps in #148692

@github-actions github-actions bot added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. labels May 28, 2024
@LongCatIsLooong LongCatIsLooong requested a review from justinmc May 28, 2024 20:33
Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CP LGTM 👍

@itsjustkevin itsjustkevin added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 5, 2024
@auto-submit auto-submit bot merged commit 071635b into flutter:flutter-3.22-candidate.0 Jun 5, 2024
@LongCatIsLooong LongCatIsLooong deleted the cp-stable-texteditingcontroller branch June 5, 2024 06:55
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants