flutter / flutter/flutter

[iOS] Autocorrect highlight does not go away if you scroll

Open
#181,236 3 comments 3 reactions 0 assignees View on GitHub
a: text input found in release: 3.38 found in release: 3.41 has reproducible steps P2 platform-ios team-ios triaged-ios
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

Image

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.