share_options 1.0.2 copy "share_options: ^1.0.2" to clipboard
share_options: ^1.0.2 copied to clipboard

outdated

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

alt text

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:
alt text

Buy me a coffee #

Supporting me by clicking the below button

Buy Me A Coffee

16
likes
40
pub points
48%
popularity

Publisher

unverified uploader

A Flutter plugin for getting share options and share text & multiple file over them.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, mime

More

Packages that depend on share_options