flutter / flutter/flutter

flutter web textfield is hard to open copy and paste menu with double-tap on ios phone

Open
#155,336 13 comments 3 reactions 0 assignees View on GitHub
a: text input browser: safari-ios e: OS-version specific found in release: 3.24 found in release: 3.26 has reproducible steps P2 platform-web team-web triaged-web
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

On Flutter Web for Android, after long-pressing a TextField, the paste functionality appears correctly. However, on Flutter Web for iOS, users typically double-tap to bring up the paste menu. When double-tapping, the menu briefly appears but quickly disappears. If the TextField contains text, it gets fully selected. It seems that the "select all" action overrides the paste menu. Long-pressing, however, works as expected and correctly opens the paste functionality.

### Expected results

When double-tapping on ios web, shows the copy and paste menu.

### Actual results

When double-tapping, the menu briefly appears but quickly disappears.

### Code sample

Code sample

```dart
@override
Widget build(BuildContext context) {
return TextField();
}
```

### Screenshots or Video

Screenshots / Video demonstration

https://github.com/user-attachments/assets/59595084-3379-40f4-a5b1-e51f6a67a66e

### Logs

Logs

```console
[Paste your logs here]
```

### Flutter Doctor output

Doctor output

```console
[✓] Flutter (Channel stable, 3.24.1, on macOS 14.5 23F79 darwin-arm64, locale zh-Hant-TW)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.92.2)

```

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.