[share_plus] How to handle device rotation? (iPad)
Currently, the share sheet keeps its origin where it was set using the sharePositionOrigin parameter, when the device gets rotated. However, this position is wrong in most cases after a rotation, as it often is the position of a button on screen, which will have a different position when rotated.
Is there a way to update the position after rotation?
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 is not stale.
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 is not stale and also not completed.
Is there a way to update the position after rotation?
How is this that handled natively on Swift/Objective-C?
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
Will take a look at this and comment on this issue. The issue ist not stale.
On native iOS, the share sheet gets closed and then reopened at the new position after rotation.
https://github.com/fluttercommunity/plus_plugins/assets/26022902/84bf18ee-37c7-40d2-889f-00aa11ef41e5
However, I still have not figured out whether this gets done automatically or if developer have to do this on their own.
One could replicate the behaviour using share_plus if share_plus would allow to dismiss/close an already opened share sheet.
Please reopen the issue.
I am reopening it and properly tagging it as an enhancement request, not as question (which get closed if stale). Just to keep expectations clear, doesn't mean we will ever work on this, but we are open to review a PR improving this.
Note There are multiple options to set the anchor point. As stated here, those are:
- Using a
sourceItem: This might provide the autorotation functionality (did not test), however can not be used with Flutter, obviously. - Using a combination of
sourceViewandsourceRect: Currently used for share plus.
Hi, I’m currently experiencing the same issue and noticed that this been open for quite a while without any recent updates. Just checking in to see if there’s been any progress on this?
@saibotma were you able to find any workarounds? 😅 Thanks
@ivannatividad Have no workaround.