1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-26 10:50:29 +02:00

fix(mobile): native dialog location (#14730)

This commit is contained in:
Alex 2024-12-16 14:26:52 -06:00 committed by GitHub
parent 95f300f8d2
commit c7b44bef81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,10 +64,13 @@ class ShareService {
);
}
final box = context.findRenderObject() as RenderBox?;
final size = MediaQuery.of(context).size;
Share.shareXFiles(
downloadedXFiles,
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
sharePositionOrigin: Rect.fromPoints(
Offset.zero,
Offset(size.width / 3, size.height),
),
);
return true;
} catch (error) {