From 3ae21c6a9a82b1cba1be8ef50e1e5ab59e124f87 Mon Sep 17 00:00:00 2001 From: nilsreichardt Date: Thu, 2 May 2024 01:43:58 +0200 Subject: [PATCH] Fix share "let parents buy" option for iPad --- app/lib/sharezone_plus/page/sharezone_plus_page.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/lib/sharezone_plus/page/sharezone_plus_page.dart b/app/lib/sharezone_plus/page/sharezone_plus_page.dart index 8916db049..76b259449 100644 --- a/app/lib/sharezone_plus/page/sharezone_plus_page.dart +++ b/app/lib/sharezone_plus/page/sharezone_plus_page.dart @@ -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, + ); } } }