Skip to content
pubscout

filepicker_windows

3.0.2, released 7 months ago by halildurmus.dev

Windows file and directory picker using native dialog controls

$ flutter pub add filepicker_windows
Source repository

What it does

Provides a high‑level API to open file, save, and directory dialogs on Windows. It wraps the Win32 common dialog APIs via FFI, offering filtering, custom places, and automatic owner window detection.

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

Use it when

  • Need to pick one or multiple files in a Flutter Windows app
  • Need to select a directory or save a file
  • Want to filter files by type or add custom navigation places
  • Want the dialog to open as a modal in front of the Flutter window

Skip it when

  • Targeting non‑Windows platforms
  • Building a custom file picker UI
  • Using only Dart without native dialogs

Strengths

  • Native performance and correctness
  • Automatic modal behavior with Flutter window
  • Easy to use API with filtering and custom places

Weaknesses

  • Windows‑only
  • Requires FFI and win32 dependency
  • No support for macOS/Linux

Setup

Kind
FFI (native library)
Effort
Low
Code generation
No
Direct dependencies
3
import 'package:filepicker_windows/filepicker_windows.dart';

final picker = OpenFilePicker()
  ..filterSpecification = {
    'Text Document (*.txt)': '*.txt',
    'All Files': '*.*',
  }
  ..title = 'Select a file';

final file = picker.getFile();
if (file != null) {
  print('Selected: ${file.path}');
}

Alternatives

Packages that do the same job and could replace filepicker_windows.

Works with

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