Skip to content

Commit

Permalink
Fix share "let parents buy" option for iPad (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt authored May 2, 2024
1 parent 6d57975 commit b7f37f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/lib/sharezone_plus/page/sharezone_plus_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,12 @@ class _PurchaseSection extends StatelessWidget {
showSnackSec(
context: context, text: 'Link in die Zwischenablage kopiert.');
} else {
Share.share(url);
final box = context.findRenderObject() as RenderBox?;
Share.share(
url,
// See: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus/share_plus#ipad
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
);
}
}
}
Expand Down

0 comments on commit b7f37f8

Please sign in to comment.