blasten / image_saver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
          .get('http://upload.art.ifeng.com/2017/0425/1493105660290.jpg');

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

About

License:Other


Languages

Language:Java 82.1%Language:Objective-C 14.9%Language:Dart 1.7%Language:Ruby 1.3%