filesystem_picker
4.1.0, released 3 years ago by amazingsoftworks.com
File and folder picker dialog to browse the device file system.
What it does
Provides a file system explorer widget that can be opened as a fullscreen dialog, popup dialog, or bottom sheet. Allows users to browse directories, filter by allowed extensions, and select files or folders.
AI-written summary of version 4.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to let users pick specific folders or files from the device file system.
- You are building desktop or mobile apps that require direct directory and file browsing.
Skip it when
- You only need to pick generic documents or media via native system pickers without a custom directory browser UI.
- You require web platform filesystem access where this package may not apply.
Strengths
- Supports multiple display modes including fullscreen, popup dialog, and bottom sheet.
- Highly customizable themes, shortcut support, and context actions like creating folders.
- Cross-platform support across Android, iOS, Windows, macOS, and Linux.
Weaknesses
- Requires managing permissions (e.g., via permission_handler) on Android for storage access.
- Android Manifest permissions must be manually updated for legacy storage access.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add dependency to pubspec.yaml and configure Android permissions in AndroidManifest.xml if targeting Android storage.
String path = await FilesystemPicker.open(
title: 'Open file',
context: context,
rootDirectory: rootPath,
fsType: FilesystemType.file,
allowedExtensions: ['.txt'],
fileTileSelectMode: FileTileSelectMode.wholeTile,
);Alternatives
Packages that do the same job and could replace filesystem_picker.
- file_selector_macos
macOS implementation of the file_selector plugin
82Compare - file_selector_windows
Windows implementation of the file_selector plugin
77Compare - file_selector_web
Web implementation of file_selector for selecting files in Flutter web.
76Compare - file_selector_linux
Linux implementation of the file_selector plugin for picking and saving files.
79Compare