saf_util 2.0.0 leaves an already-answered MethodChannel.Result behind in pendingResult: unrelated activity request codes consume (and answer) the pending picker, and a failed picker launch replies without clearing the pending state. The next delivery for request 1001 then replies a second time — IllegalStateException "Reply already submitted" in MainActivity.onActivityResult, crashing the process. Vendored at packages/saf_util (BSD-3) with take-and-clear reply ownership, request codes scoped to the plugin's own pickers, and a guarded reply on the teardown race.
1.7 KiB
1.7 KiB
2.0.0 (plezy vendored patch)
Vendored from pub.dev saf_util 2.0.0 with a Result-lifecycle fix: pending picker replies are take-and-clear (no reply to an already-answered Result → no "Reply already submitted" crash), unrelated activity request codes no longer consume the pending picker, and failed picker launches clear the stale pending state.
2.0.0
- Update to Kotlin 2.2.0
1.0.0
- No changes. This is just a version bump to mark the stable release.
0.12.0
- Add
releasePersistedPermissionto release the persisted permission of a URI.
0.11.0
- Allow empty names in
.child, which returns a [DocumentFile] from the first path param (likestat).
0.10.0
- Add
stat. Unlike [documentFileFromUri],statreturns null if uri does not exist.
0.9.0
- Auto detect path type when
documentFileFromUri.isDiris null.
0.8.0
- Add
hasPersistedPermission.
0.7.0
- Add file descriptor support.
0.6.2
- Fix length overflow.
0.6.1
- Update docs.
0.6.0
- Add
pickFilesandpickDirectoryto replaceopenFileandopenDirectory. The new methods return [DocumentFile] instead of Uri string.
0.5.0
- Add
openFileandopenFilesto open file picker dialog. - Make sure read permission is always set when write permission is on.
0.4.0
- Relax minimum Dart and Flutter versions (Fixes #2).
0.3.0
saveThumbnailToFilewidth and height params should be int.
0.2.0
- Add
saveThumbnailToFile, which supports extracting image and video thumbnails from an SAF [DocumentFile].
0.1.0
- Add
writePermissionandpersistablePermissionto openDirectory - Support renaming on file
DocumentFile
0.0.1
- Initial release.