Open timovandeput opened 1 year ago
I am seeing the exact same issue as well. I haven't been able to make much sense of the logs.
I've also gotten this issue with physical iPhone 13 pro max devices, tried that share position origin fix but didn't seem to work.
Seems like we already had a few similar issues, but there were no meaningful solution:
https://github.com/fluttercommunity/plus_plugins/issues/619 https://github.com/fluttercommunity/plus_plugins/issues/730
Note, in #730 it is mentioned that the issue happened only in debug builds.
Also, I Googled info about the error (something that the reporter supposed to do in the first place before marking the checkmark claiming so) and found such cases, which are not about share_plus
or Flutter at all:
https://developer.apple.com/forums/thread/688912
https://stackoverflow.com/questions/70311334/multiple-errors-with-uiactivityviewcontroller-in-swiftui
I don't have an iPad, but tried to reproduce on simulator with iOS 16.4 with both example
app and a new project with share_plus
added and couldn't see the same issue:
Thus, could somebody share a full code snippet of their page/screen? Especially curios which context you provide to call findRenderObject()
. Did any of view wrapped the widget calling Share.share()
with Builder()
as suggested in docs and shown in the example app?
I have the same error in Ipad only
I have the same error in iphone
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days
Did anybody find a solution yet?
ipad rebuild helped!
And also Builder(builder:(context2) => GestureDetector( onTap: () async {
I added sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
Platform
iOS 16.3.1
Plugin
share_plus
Version
7.1.0
Flutter SDK
3.13.1
Steps to reproduce
I used code similar to the documentation that triggers a share upon pressing a button.
This works as expected on Android, but fails on my iPad:
It only shows a white banner at the top of the screen, which can be dismissed by clicking outside it.
Note that I provided the
sharePositionOrigin
as documented, which on my device has a value ofRect.fromLTRB(0.0, 76.0, 834.0, 1112.0)
.Code Sample
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean