A Flutter plugin for share file (image, PDF, video, ecc) or text.
To use the plugin, add simple_share
as a
dependency in your pubspec.yaml file.
For share file:
SimpleShare.share(uri: uri.toString());
For share file with subject (like in Gmail)
SimpleShare.share(uri: uri.toString(), subject: "subject example");
For share text:
SimpleShare.share(msg: "shared Text");
For share text with subject (like in Gmail)
SimpleShare.share(msg: "My message"", subject: "subject example");
See the example application source for a complete sample app using the Simple RSA encryption.