Last updated:
0 purchases
media file saver
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>
copied to clipboard
Install it
pub get
copied to clipboard
Import it
import 'package:media_file_saver/media_file_saver.dart;
copied to clipboard
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());
copied to clipboard
License #
BSD @joshuadeguzman
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.