Skip to content
pubscout

file_picker_desktop

1.2.0, released 2 years ago by an unverified publisher

Use native file explorers on Windows, macOS, and Linux to pick files, directories, and save files.

$ flutter pub add file_picker_desktop
Source repository

What it does

Provides a Dart API to invoke native desktop file pickers and save dialogs for Windows, macOS, and Linux using FFI. It supports single or multiple file selection, custom extension filters, directory picking, and file saving without requiring Go Flutter.

AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need native desktop file picking or saving on Windows, macOS, and Linux
  • You want a pure Dart implementation using FFI instead of Go-based desktop plugins

Skip it when

  • You are building for Android, iOS, or web platforms
  • You want active feature updates (this package is archived in favor of the main file_picker package)

Strengths

  • Pure Dart implementation using FFI with no Go dependency
  • Supports file extension filters, multi-selection, directory picking, and file saving
  • Mirrors the API of Miguel Pruivo's file_picker package

Weaknesses

  • Archived package that only receives bug fixes
  • Does not support mobile platforms (Android, iOS) or the web

Setup

Kind
FFI (native library)
Effort
Low
Code generation
No
Direct dependencies
2

Not documented

try {
  final result = await pickFiles(
    allowMultiple: false,
  );
  if (result != null) {
    File file = File(result.files.single.path);
  } else {
    // User canceled the picker
  }
} catch (e) {
  print(e);
}

Alternatives

Packages that do the same job and could replace file_picker_desktop.

Works with

Packages commonly used together with file_picker_desktop: ones it builds on, ones built on it, and its own family.