flutter_share_plugin 0.0.1 copy "flutter_share_plugin: ^0.0.1" to clipboard
flutter_share_plugin: ^0.0.1 copied to clipboard

discontinuedreplaced by: share_plus
outdated

A new flutter plugin project.

flutter_share_plugin #

This plugin helps sharing content like, text, image or a file to other apps. It supports both Android and iOS, no additional changes are required in native code or projects.

Just install this plugin and use it as required.

Installation: #

Plugin is not published yet

Usage Examples: #

Share only text: #

FlutterShare.share(textContent: "Text to be shared");

Share only file: #

String fileName = "abc.txt"; //or abc.png or abc.mp3 or abc.xml, all files are supported 

//use your own file here, this is just for example
File file = File($fileName);
//read file as bytes
var bytes = await file.readAsBytes();
FlutterShare.share(fileName: fileName, bytes: bytes);

Share file and text content: (text will be used only in case shared with email or chat app and will be set as body text ) #

String fileName = "screenshot_123.jpg";
//use your own file here, this is just for example
File screenshot = File($fileName);
//read file as bytes
var bytes = await screenshot.readAsBytes();
FlutterShare.share(textContent: "Screenshot attached", fileName: fileName, bytes: bytes);
6
likes
0
pub points
45%
popularity

Publisher

unverified uploader

A new flutter plugin project.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, path_provider

More

Packages that depend on flutter_share_plugin