dir_picker 0.4.1 copy "dir_picker: ^0.4.1" to clipboard
dir_picker: ^0.4.1 copied to clipboard

A Flutter plugin for picking directories and listing file system entries, supporting Android, iOS, macOS, Windows, Linux, and Web via FFI and JNI.

0.4.1 #

  • Update document

0.4.0 #

  • Add DirPicker.listEntries() to list files and directories from a previously picked location
  • Add FileSystemEntry with relativePath, metadata, and nullable web uri
  • Breaking: DirPicker.pick() now takes a single PickOptions? options parameter instead of separate per-platform named parameters (androidOptions, linuxOptions, macosOptions, windowsOptions)
  • Breaking: Rename SelectedLocationPickedLocation, NativeLocationIOPickedLocation, WebSelectedLocationWebPickedLocation
  • Add PickOptions sealed class with platform-specific factory constructors: PickOptions.android(...), PickOptions.macos(...), PickOptions.linux(...), PickOptions.windows(...)
  • Migrate jnigen.yaml and ffigen.yaml to Dart scripts in tool/ directory for better maintainability (#3, authored by alihassan143)
  • Update jni dependency to 1.0.0 (#3, authored by alihassan143)
  • Update jnigen dev dependency to 0.16.0 (#3, authored by alihassan143)
  • Fix ffigen configuration to support latest API changes in ffigen 20.1 (#3, authored by alihassan143)

Migration guide #

// Before
DirPicker.pick(androidOptions: AndroidOptions(shouldPersist: true));
DirPicker.pick(macosOptions: MacosOptions(acceptLabel: 'Open'));

// After
DirPicker.pick(options: PickOptions.android(shouldPersist: true));
DirPicker.pick(options: PickOptions.macos(acceptLabel: 'Open'));
// Before
if (location is NativeLocation) { ... }
if (location is WebSelectedLocation) { ... }

// After
if (location is IOPickedLocation) { ... }
if (location is WebPickedLocation) { ... }

0.3.1 #

  • Add README usage examples for handling WebSelectedLocation on web and NativeLocation on native

0.3.0 #

  • Breaking: DirPicker.pick() now returns SelectedLocation? instead of Uri?
  • Add SelectedLocation abstract class with NativeLocation (native platforms) and WebSelectedLocation (web)
  • Web: return WebSelectedLocation wrapping FileSystemDirectoryHandle — use .handle to access directory contents via the File System Access API
  • Web: throw UnsupportedError on browsers that do not support showDirectoryPicker() (Firefox/Safari)

0.2.1 #

  • Fix Swift Package Manager detection on pub.dev

0.2.0 #

  • Add Swift Package Manager (SPM) support for iOS and macOS
  • Breaking: Rename MacosOptions.promptMacosOptions.acceptLabel for consistency with other platforms
  • Add MacosOptions.message parameter to customize the panel message
  • Fix AndroidOptions.shouldPersist default value to false

0.1.0 #

  • Initial version
3
likes
150
points
219
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for picking directories and listing file system entries, supporting Android, iOS, macOS, Windows, Linux, and Web via FFI and JNI.

Repository (GitHub)
View/report issues

Topics

#dir-picker #directory #picker #ffi #jni

License

MIT (license)

Dependencies

dbus, ffi, flutter, flutter_web_plugins, jni, path, web

More

Packages that depend on dir_picker

Packages that implement dir_picker