image_saver 0.2.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • new75

Image Saver plugin for Flutter #

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

Example #

    import 'package:image_saver/image_saver.dart';


    void _onImageSaveButtonPressed() async {
      var response = await http
          .get('http://upload.art.ifeng.com/2017/0425/1493105660290.jpg');

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

0.1.0 #

  • Add return saved file path
  • Add save screenshot sample

0.0.2 #

  • Android implemented,iOS implemented.
  • Removed unused parameters.

0.0.1 #

forked from official plugin image_picker and add saver function to save image to photo gallery. Android implemented,iOS in developing

---- The following is the official plugin description ---

0.4.6 #

  • Added support for picking remote images.

0.4.5 #

  • Bugfixes, code cleanup, more test coverage.

0.4.4 #

  • Updated Gradle tooling to match Android Studio 3.1.2.

0.4.3 #

  • Bugfix: on iOS the pickVideo method will now return null when the user cancels picking a video.

0.4.2 #

  • Added support for picking videos.
  • Updated example app to show video preview.

0.4.1 #

  • Bugfix: the pickImage method will now return null when the user cancels picking the image, instead of hanging indefinitely.
  • Removed the third party library dependency for taking pictures with the camera.

0.4.0 #

  • Breaking change. The source parameter for the pickImage is now required. Also, the ImageSource.any option doesn't exist anymore.
  • Use the native Android image gallery for picking images instead of a custom UI.

0.3.1 #

  • Bugfix: Android version correctly asks for runtime camera permission when using ImageSource.camera.

0.3.0 #

  • Breaking change. Set SDK constraints to match the Flutter beta release.

0.2.1 #

  • Simplified and upgraded Android project template to Android SDK 27.
  • Updated package description.

0.2.0 #

  • Breaking change. Upgraded to Gradle 4.1 and Android Studio Gradle plugin 3.0.1. Older Flutter projects need to upgrade their Gradle setup as well in order to use this version of the plugin. Instructions can be found here.

0.1.5 #

  • Added FLT prefix to iOS types

0.1.4 #

  • Bugfix: canceling image picking threw exception.
  • Bugfix: errors in plugin state management.

0.1.3 #

  • Added optional source argument to pickImage for controlling where the image comes from.

0.1.2 #

  • Added optional maxWidth and maxHeight arguments to pickImage.

0.1.1 #

  • Updated Gradle repositories declaration to avoid the need for manual configuration in the consuming app.

0.1.0+1 #

  • Updated readme and description in pubspec.yaml

0.1.0 #

  • Updated dependencies
  • Breaking Change: You need to add a maven section with the "https://maven.google.com" endpoint to the repository section of your android/build.gradle. For example:
allprojects {
    repositories {
        jcenter()
        maven {                              // NEW
            url "https://maven.google.com"   // NEW
        }                                    // NEW
    }
}

0.0.3 #

  • Fix for crash on iPad when showing the Camera/Gallery selection dialog

0.0.2+2 #

  • Updated README

0.0.2+1 #

  • Updated README

0.0.2 #

  • Fix crash when trying to access camera on a device without camera (e.g. the Simulator)

0.0.1 #

  • Initial Release

Use this package as a library

1. Depend on it

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


dependencies:
  image_saver: ^0.2.0

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages 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';
  
Version Uploaded Documentation Archive
0.2.0 Feb 1, 2019 Go to the documentation of image_saver 0.2.0 Download image_saver 0.2.0 archive
0.1.1 Feb 1, 2019 Go to the documentation of image_saver 0.1.1 Download image_saver 0.1.1 archive
0.1.0 Jan 25, 2019 Go to the documentation of image_saver 0.1.0 Download image_saver 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
55
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
89
Overall:
Weighted score of the above. [more]
75
Learn more about scoring.

We analyzed this package on Feb 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.13+1
  • Flutter: 1.2.1

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-1 points)

5 out of 5 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/README.md.

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.

Dependencies

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
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test