talira

file_picker

Native file picker for Flutter apps

open sourceMITfree

file_picker is a Flutter plugin that opens the platform's native file explorer to pick one or several files, with extension filtering, directory selection and save-file dialogs, on Android, iOS, Linux, macOS, Windows and the web. It's a federated plugin: one cross-platform API package with an implementation package per platform (Android with Storage Access Framework support, GTK3 and XDG portals on Linux, Win32 COM on Windows, Wasm on the web). Miguel Ruivo created and maintained it from 2018; Victor Carreras maintains it now.

Problems it solves

  • let users choose a file from their device in my Flutter app
  • open a save dialog from a Flutter desktop app
  • pick only PDFs or images in a Flutter app on every platform

Features

  • Pick one or several files with the native file explorer
  • Filter by file extension
  • Pick directories and show save-file dialogs
  • Android, iOS, Linux, macOS, Windows and web from one API
  • Federated plugin with an implementation package per platform