filepicker_windows
3.0.2, released 7 months ago by halildurmus.dev
Windows file and directory picker using native dialog controls
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.
- flutter_file_dialog
Dialogs for picking and saving files and directories on Android and iOS.
90Compare - dir_picker
Pick directories and list file system entries across Android, iOS, macOS, Windows, Linux, and Web.
75Compare - image_picker_for_web
Web implementation of image_picker that lets users select images or videos via the browser file picker.
79Compare - file_picker_platform_interface
Common platform interface for the file_picker federated plugin.
85Compare
Works with
Packages commonly used together with filepicker_windows: ones it builds on, ones built on it, and its own family.
- ffifilepicker_windows depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- win32filepicker_windows depends on itCall common Windows APIs and COM objects directly from Dart using FFI.
- ffi_leak_trackerfilepicker_windows depends on itTracks and detects native memory leaks in Dart FFI allocations.
- win32_registrySame familyType‑safe Dart API for accessing and managing the Windows Registry
- win32_gamepadSame familyType-safe Dart API for accessing Windows gamepads via Win32
- win32_clipboardSame familyType‑safe Dart API for reading, writing and monitoring the Windows clipboard.