Skip to content
pubscout

flutter_media_store

1.3.1, released 2 years ago by an unverified publisher

Save, append, and pick files using Android MediaStore

WASM-readyUnverified publisher
$ flutter pub add flutter_media_store
Source repository

What it does

Allows Flutter apps to save files, append data, and pick files directly through Android's MediaStore and Scoped Storage system. It handles storage permissions automatically across different Android versions.

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

Use it when

  • You need to save files into Android's MediaStore in compliance with Scoped Storage
  • You need to append data to existing files stored in the MediaStore
  • You need to pick single or multiple files from the device storage on Android

Skip it when

  • Your application targets iOS or platforms other than Android
  • You only need general local file system path management without MediaStore integration

Strengths

  • Seamless integration with Android Scoped Storage and MediaStore
  • Automatic permission handling based on the Android SDK version
  • Supports multi-file picking and appending data to existing files

Weaknesses

  • Limited to Android platform
  • Requires manual addition of native permissions in AndroidManifest.xml

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
2

Add required Android permissions (READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, or MANAGE_EXTERNAL_STORAGE) to AndroidManifest.xml depending on the target API levels.

FlutterMediaStore().pickFile(
  multipleSelect: false,
  onFilesPicked: (List<String> uris) {
    print('Picked file URI: ${uris.first}');
  },
  onError: (String error) {
    print('Failed to pick file');
  },
);

Alternatives

Packages that do the same job and could replace flutter_media_store.

  • path_provider

    Provides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.

  • file_picker

    Use the native file explorer to pick single or multiple files, directories, and save files.

  • file_saver

    Save files from bytes, paths, streams, and URLs across Android, iOS, Web, Windows, macOS, and Linux.

  • file_selector_macos

    macOS implementation of the file_selector plugin

Works with

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