share_options 1.0.2 share_options: ^1.0.2 copied to clipboard
A Flutter plugin for getting share options and share text & multiple file over them.
share_options #
A Flutter plugin for getting share options and share text & multiple file over them
Supports only Android .
Hey, hey why you created this plugin ?
- I wanted to create something like this sharing button
Let's Discover It #
Get sharing options which can receive texts only
every ShareOption object have name & icon (in Uint8List format ) properties
Future<List<ShareOption>> get getTextShareOptions async =>
await ShareOptions.getTextShareOptions("text",subject: "subject");
Maybe you are wondering now and say Why you make shared content passes when getting share options ?
- to get only share options that support this shared content By example some app doesn't support file sharing , some formats of files or multiple files share and so on.
Let's Continue #
Get sharing options which can receive files
Future<List<ShareOption>> get getFileShareOptions async =>
await ShareOptions.getFilesShareOptions(['path1', 'path2'], text: 'text',subject: 'subject');
finally for share content
void share()async => await shareOption.share();
Example app will produce:
Buy me a coffee #
Supporting me by clicking the below button