image_saver 1.0.2

  • Readme
  • Changelog
  • Installing
  • 87

Image Saver plugin for Flutter #

Saves photos to the gallery. Supports Android 16+ and IOS 8.0+

Usage #

    import 'package:image_saver/image_saver.dart';

    void _onImageSaveButtonPressed() async {
      var response = await http

      File savedFile = await ImageSaver.saveFile(fileData: response.bodyBytes);
      if (!mounted) {
      setState(() {
        _imageFile = savedFile);

1.0.2 #

  • Change Android package name with a consistent one

1.0.1 #

  • Fixed wrong package name in pubspec.yaml (thanks @blasten)

1.0.0 #

  • Migrate Android support libraries to AndroidX
  • Add example

0.1.0 #

  • Forked from 4ed1/image_saver
  • Return a File instead of a path
  • Cleanup unused files

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  image_saver: ^1.0.2

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:image_saver/image_saver.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 27, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Health issues and suggestions

Document public APIs. (-1 points)

4 out of 4 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and image_saver.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.

The package description is too short. (-1 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.28.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies