You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/share_plus/share_plus/README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,16 @@ Check out our documentation website to learn more. [Plus plugins documentation](
71
71
72
72
## Known Issues
73
73
74
+
### Sharing data created with XFile.fromData
75
+
76
+
When sharing data created with `XFile.fromData`, the plugin will write a temporal file inside the cache directory of the app, so it can be shared.
77
+
78
+
Althouth the OS should take care of deleting those files, it is advised, that you clean up this data once in a while (e.g. on app start).
79
+
80
+
You can access this directory using [path_provider](https://pub.dev/packages/path_provider)[getTemporaryDirectory](https://pub.dev/documentation/path_provider/latest/path_provider/getTemporaryDirectory.html).
81
+
82
+
Alternatively, don't use `XFile.fromData` and instead write the data down to a `File` with a path before sharing it, so you control when to delete it.
0 commit comments