Skip to content
🖼️ A plugin for saving images and other media files in the device's pictures directory (Android) or photo library (iOS).
Kotlin Ruby Swift Dart Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
android
example
ios
lib
.gitignore
.metadata
CHANGELOG.md
LICENSE
README.md
media_file_saver.iml
pubspec.lock
pubspec.yaml

README.md

media_file_saver

🖼️ A plugin for saving images and other media files in the device's pictures directory (Android) or photo library (iOS).

Features

  • Simplified image and media file download
  • Supports PNG, JPG, JPEG, GIF, MP3 and more
  • Implements native permission (Android) and authorization requests (iOS)

Installation

Add it to your pubspec.yaml file

dependencies:
   media_file_saver: <PLUGIN_VERSION>

Install it

pub get

Import it

import 'package:media_file_saver/media_file_saver.dart;

Usage

Eg. Saving image from cache

// Getting the cached image
final file = await DefaultCacheManager().getSingleFile("https//example.com/profile-picture.png");

// Downloading the image file to your photo library
await MediaFileSaver.saveImage(file.readAsBytes());

License

BSD @joshuadeguzman

You can’t perform that action at this time.