flutter_share_file 1.0.0+1 copy "flutter_share_file: ^1.0.0+1" to clipboard
flutter_share_file: ^1.0.0+1 copied to clipboard

discontinued
outdated

This plugin is for sharing contents using Flutter. Supports only PNG image sharing for Now.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:io';
import 'package:flutter_share_file/flutter_share_file.dart';
import 'package:image_picker/image_picker.dart';

void main() => runApp(new MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => new _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: new Scaffold(
        appBar: new AppBar(
          title: const Text('Plugin example app'),
        ),
        body: new Center(
            child: new Column(
          children: <Widget>[
            new RaisedButton(
              onPressed: () async {
                File f =
                    await ImagePicker.pickImage(source: ImageSource.gallery);
                FlutterShareFile.shareImage(f.path, "image.png");
              },
              child: new Text("share image"),
            ),
          ],
        )),
      ),
    );
  }

}
9
likes
0
pub points
58%
popularity

Publisher

unverified uploader

This plugin is for sharing contents using Flutter. Supports only PNG image sharing for Now.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_share_file