fix: upgrade to race-safe dart_ipc (#1479)

This commit is contained in:
Levi authored and GitHub committed 2026-09-07 09:23:26 +08:00
1 parent 53d13dfe28
commit 67814348dc
14 files changed
+136 -79

No files matched your search

@@ -109,7 +109,7 @@ class _TaskFileManagerViewState extends State<TaskFileManagerView> {
try {
final renderBox = actionContext.findRenderObject();
final origin = renderBox is RenderBox ? renderBox.localToGlobal(Offset.zero) & renderBox.size : null;
await Share.shareXFiles([XFile(_localPath(entry))], sharePositionOrigin: origin);
await SharePlus.instance.share(ShareParams(files: [XFile(_localPath(entry))], sharePositionOrigin: origin));
} catch (error) {
if (mounted) showAppToast(context, error.toString(), type: AppToastType.error);
}