Open
Description
Steps to Reproduce
- flutter create handoff_clipboard
- prepare a macbook and any iOS deivce
- make sure Apple's 'Handoff' feature is enabled on the devices above.
- add a
TextField()
at somewhere of thelib/main.dart
- run flutter on the ios device
cmd+c
some text on the screen of macOS- tap TextField widget on the screen of iOS
- tap "Paste"
- There flash an alert and then disappear, leave a Error in console (Xcode/vscode):
[Pasteboard] ...requesting item failed with error: Error Domain=PBErrorDomain Code=13 "Operation not authorized." UserInfo={NSLocalizedDescription=Operation not authorized.}
- tap paste again, the alert will stay on the screen, looks good.
some codes in starter project, if useful
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
// 🚧 add this line
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
const Text(
'You have pushed the button this many times:',
),
Text(
'$_counter',
style: Theme.of(context).textTheme.headlineMedium,
),
// 🚧 add this line
TextField(),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
),
);
}
flutter doctor
➜ ~ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.5, on macOS 13.2.1 22D68 darwin-arm64, locale en-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.75.1)
[✓] Proxy Configuration
[✓] Connected device (3 available)
[✓] HTTP Host Availability
Metadata
Metadata
Assignees
Labels
Important issues not at the top of the work listMatching the OEM platforms betterEntering text in a text field or keyboard related problemsFound to occur in 3.7Found to occur in 3.8The issue has been confirmed reproducible and is ready to work oniOS applications specificallyOwned by iOS platform teamTriaged by iOS platform team