diff --git a/modules/legacy/modules/location/lib/src/features/location/presentation/widgets/location_map.dart b/modules/legacy/modules/location/lib/src/features/location/presentation/widgets/location_map.dart index ba81614f..c035bdea 100644 --- a/modules/legacy/modules/location/lib/src/features/location/presentation/widgets/location_map.dart +++ b/modules/legacy/modules/location/lib/src/features/location/presentation/widgets/location_map.dart @@ -237,7 +237,13 @@ class _LocationMapState extends ConsumerState unawaited(ref.read(sfTrackingProvider).legacyLocationShared()); - Share.share(text.toString().trim()); + final box = context.findRenderObject() as RenderBox?; + Share.share( + text.toString().trim(), + sharePositionOrigin: box != null + ? box.localToGlobal(Offset.zero) & box.size + : Rect.zero, + ); } Future _updateFrequency(int frequency) async {