file_picker_linux 1.1.0
file_picker_linux: ^1.1.0 copied to clipboard
Linux implementation of the file_picker plugin using GTK3 and XDG Desktop Portals for native file and directory picking.
1.1.0 #
- Implemented
PlatformFile.lengthSync(). XDG Desktop Portals only return a file path, not its size, so this returnsnullon Linux, uselength()to actually read it from disk.
1.0.2 #
- Fixed
LinuxOptions.lockParentWindowandLinuxOptions.acceptLabelbeing silently ignored. Passing a plainLinuxOptionsfell back to a defaultFilePickerLinuxOptions, dropping whatever the caller had set, which is the exact API the deprecation onFilePicker.pickFilespoints to. #2183 FilePickerLinuxOptionsnow acceptsacceptLabel, so it no longer has to be traded away in order to setparentWindow.- Documented the Linux specific options in the README, including that
lockParentWindowneedsparentWindowto have any visible effect. - Expanded the package example to show resolving
parentWindowat runtime, which is what makeslockParentWindowlock anything. - Tightened the
file_picker_platform_interfacelower bound to^3.2.0. This package'spickFile()/pickFiles()signatures referenceDarwinOptions, added in that version, so resolving against an older one would fail to compile.