mirror of
https://github.com/immich-app/immich.git
synced 2025-01-21 00:52:43 -05:00
fix(mobile): native dialog location (#14730)
This commit is contained in:
parent
95f300f8d2
commit
c7b44bef81
1 changed files with 5 additions and 2 deletions
|
@ -64,10 +64,13 @@ class ShareService {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
final box = context.findRenderObject() as RenderBox?;
|
final size = MediaQuery.of(context).size;
|
||||||
Share.shareXFiles(
|
Share.shareXFiles(
|
||||||
downloadedXFiles,
|
downloadedXFiles,
|
||||||
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
|
sharePositionOrigin: Rect.fromPoints(
|
||||||
|
Offset.zero,
|
||||||
|
Offset(size.width / 3, size.height),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue