Justin McCandless 07f51a8cc9
[CP-stable]Show cursor after swipe only if TextField has focus (#176048)
Fixes an issue where multiple cursors were shown incorrectly

This pull request is a manual cherry pick of
https://github.com/flutter/flutter/pull/175044 after I had trouble
updating the automatic cherry pick pull request
(https://github.com/flutter/flutter/pull/175393).

### Issue Link:
What is the link to the issue this cherry-pick is addressing?

https://github.com/flutter/flutter/issues/173106

### Changelog Description:
Explain this cherry pick in one line that is accessible to most Flutter
developers. See [best
practices](https://github.com/flutter/flutter/blob/main/docs/releases/Hotfix-Documentation-Best-Practices.md)
for examples

[flutter/173106](https://github.com/flutter/flutter/issues/173106) -
Fixes an issue where multiple cursors were shown incorrectly

### 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)

App is usable but shows multiple cursors incorrectly.

### Workaround:
Is there a workaround for this issue?

No.

### Risk:
What is the risk level of this cherry-pick?

  - [x] Low
  - [ ] Medium
  - [ ] High

### Test Coverage:
Are you confident that your fix is well-tested by automated tests?

  - [x] Yes
  - [ ] No

### Validation Steps:
What are the steps to validate that this fix works?

Create a list with many text fields. Tap on one text field to focus it.
Swipe on another text field. Only at most one cursor should be visible
at a time.

Co-authored-by: Memet <54338732+Memet18@users.noreply.github.com>
2025-09-26 09:44:33 -07:00
..

Flutter

Flutter is a new way to build high-performance, cross-platform mobile, web, and desktop apps. Flutter is optimized for today's — and tomorrow's — mobile and desktop devices. We are focused on low-latency input and high frame rates on all platforms.

See the getting started guide for information about using Flutter.