-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] Permission dialog when pasting text from universal clipboard may be closed before user has had time to allow pasting #121446
Comments
Issue is reproducible on the latest versions of flutter. The bug didn't reproduce for me when I was just copy/pasting text on the iPhone but when handoff entered the picture, the bug reproduced.
Related: #103163 This did not reproduce on code sampleimport 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: const Center(
child: TextField(),
),
);
}
}
logs
flutter doctor -v
|
CC @jmagman Do we expect Handoff to work with Flutter right now? I haven't ever tried it. |
I can reproduce the issue in Flutter 3.10.3 • channel stable |
Same, regularly reproduced. Added a button to fill form, in half cases request to user permission closed almost imediately. `
` doctor: ` |
/cc @hellohuanlin |
Steps to Reproduce
TextField()
at somewhere of thelib/main.dart
cmd+c
some text on the screen of macOS[Pasteboard] ...requesting item failed with error: Error Domain=PBErrorDomain Code=13 "Operation not authorized." UserInfo={NSLocalizedDescription=Operation not authorized.}
some codes in starter project, if useful
flutter doctor
The text was updated successfully, but these errors were encountered: