[iOS] Autocorrect highlight does not go away if you scroll
- Dominant language
- Dart
- Stars
- 179k
- Forks
- 31.1k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
1. In a text field, type a misspelled word like `grept`. Don't accept the autocorrect suggestion.
2. Do a swipe gesture to scroll.
### Expected results
Scrolling accepts the autocorrect suggestion. The autocorrect highlight is no longer visible.
### Actual results
Scrolling accepts the autocorrect suggestion, but the autocorrect highlight remains visible at the text field's original location, which is clearly incorrect as the text field scrolls away.
### Code sample
Code sample
```dart
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
home: Scaffold(
body: ListView.builder(
itemCount: 100,
itemBuilder: (context, index) => TextField(),
),
),
),
);
}
```
### Screenshots or Video
Screenshots / Video demonstration
https://github.com/user-attachments/assets/fa608b61-7b0c-4932-988e-b2e1ee8d62e9
### Flutter Doctor output
Doctor output
```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.38.7, on macOS 26.2 25C56 darwin-arm64, locale en-NP)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.2)
[✓] Chrome - develop for the web
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!
```
Contributor guide
Assessment
This issue has not been assessed yet.