file_picker_linux 1.1.0 copy "file_picker_linux: ^1.1.0" to clipboard
file_picker_linux: ^1.1.0 copied to clipboard

PlatformLinux

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 returns null on Linux, use length() to actually read it from disk.

1.0.2 #

  • Fixed LinuxOptions.lockParentWindow and LinuxOptions.acceptLabel being silently ignored. Passing a plain LinuxOptions fell back to a default FilePickerLinuxOptions, dropping whatever the caller had set, which is the exact API the deprecation on FilePicker.pickFiles points to. #2183
  • FilePickerLinuxOptions now accepts acceptLabel, so it no longer has to be traded away in order to set parentWindow.
  • Documented the Linux specific options in the README, including that lockParentWindow needs parentWindow to have any visible effect.
  • Expanded the package example to show resolving parentWindow at runtime, which is what makes lockParentWindow lock anything.
  • Tightened the file_picker_platform_interface lower bound to ^3.2.0. This package's pickFile()/pickFiles() signatures reference DarwinOptions, added in that version, so resolving against an older one would fail to compile.

1.0.1 #

  • Relax dbus to ^0.7.13 so dependents can resolve xml 7. #2130
  • Improved package description, added example, and added missing API documentation.

1.0.0 #

  • Initial release of Linux implementation package for file_picker.
  • Added support for acceptLabel in LinuxOptions to customize the confirmation button label in file dialogs. #2120
0
likes
160
points
236k
downloads

Documentation

API reference

Publisher

verified publishervictorcarreras.dev

Weekly Downloads

Linux implementation of the file_picker plugin using GTK3 and XDG Desktop Portals for native file and directory picking.

Repository (GitHub)
View/report issues
Contributing

Topics

#file-picker #linux

License

MIT (license)

Dependencies

cross_file, dbus, file_picker_platform_interface, flutter, path

More

Packages that depend on file_picker_linux

Packages that implement file_picker_linux