fix: ios export sqlite db (#22369)

This commit is contained in:
shenlong 2025-09-25 20:31:54 +05:30 committed by GitHub
parent 37a3784d80
commit 5aa7ab5aeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,12 @@ class SyncStatusAndActions extends HookConsumerWidget {
await dbFile.copy(exportFile.path);
await Share.shareXFiles([XFile(exportFile.path)], text: 'Immich Database Export');
final size = MediaQuery.of(context).size;
await Share.shareXFiles(
[XFile(exportFile.path)],
text: 'Immich Database Export',
sharePositionOrigin: Rect.fromPoints(Offset.zero, Offset(size.width / 3, size.height)),
);
Future.delayed(const Duration(seconds: 30), () async {
if (await exportFile.exists()) {