-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
Share button in textfield menu crashes app on iPad #138550
Closed
2 tasks done
Labels
a: tablet
Tablets and landscape phones
a: text input
Entering text in a text field or keyboard related problems
c: fatal crash
Crashes that terminate the process
engine
flutter/engine repository. See also e: labels.
found in release: 3.16
Found to occur in 3.16
found in release: 3.17
Found to occur in 3.17
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
P1
High-priority issues at the top of the work list
platform-ios
iOS applications specifically
r: fixed
Issue is closed as already fixed in a newer version
team-ios
Owned by iOS platform team
Comments
Reproducible using the code sample and steps shared above.
flutter doctor -v
|
8 tasks
auto-submit bot
pushed a commit
to flutter/engine
that referenced
this issue
Nov 22, 2023
Fixes flutter/flutter#138550 
LouiseHsu
added a commit
to LouiseHsu/engine
that referenced
this issue
Nov 27, 2023
Fixes flutter/flutter#138550 
This was referenced Nov 27, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
DenisovAV
pushed a commit
to DenisovAV/flutter-tvos-engine
that referenced
this issue
May 5, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
a: tablet
Tablets and landscape phones
a: text input
Entering text in a text field or keyboard related problems
c: fatal crash
Crashes that terminate the process
engine
flutter/engine repository. See also e: labels.
found in release: 3.16
Found to occur in 3.16
found in release: 3.17
Found to occur in 3.17
has reproducible steps
The issue has been confirmed reproducible and is ready to work on
P1
High-priority issues at the top of the work list
platform-ios
iOS applications specifically
r: fixed
Issue is closed as already fixed in a newer version
team-ios
Owned by iOS platform team
Is there an existing issue for this?
Steps to reproduce
Use the following code example below
Basically do what the gif shows in the
Add additional options in edit menu
section of the release article here https://medium.com/flutter/whats-new-in-flutter-3-16-dba6cb1015d1 but on an iPad.This can be reproduced on an iPad Simulator, too.
I suspect what's missing is what's described here. On an iPad, the share dialog needs to know where it should be shown. If nothing is passed for the position, it just crashes.
Looking at the source, it seems plausible.
The framework part doesn't pass source coordinates to the engine side:
flutter/packages/flutter/lib/src/widgets/editable_text.dart
Lines 2533 to 2536 in db7ef5b
Taking a further look at the engine and there's also no source rectangle passed to the share dialog:
https://github.com/flutter/engine/blob/b37d8573df6ffa9106dc31788ec648f6e8607c58/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm#L155-L162
The relevant PRs that introduced this are #132599 and flutter/engine#44554. Based on those, I think @LouiseHsu could help here.
Expected results
I'm able to share the text
Actual results
App crashes
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: