From 26ddfd6134bccd880b2b0501baf43e4297289ccd Mon Sep 17 00:00:00 2001 From: nyne Date: Mon, 28 Oct 2024 16:33:16 +0800 Subject: [PATCH] fix shareFile --- lib/utils/io.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/io.dart b/lib/utils/io.dart index 690712d..f61206c 100644 --- a/lib/utils/io.dart +++ b/lib/utils/io.dart @@ -213,7 +213,7 @@ class Share { ); } else { // write to cache - var file = File(FilePath.join(Directory.systemTemp.path, filename)); + var file = File(FilePath.join(App.cachePath, filename)); file.writeAsBytesSync(data); s.Share.shareXFiles([s.XFile(file.path)]); }