#
Using Share PlusTo use this plugin, add share_plus
as a dependency in your pubspec.yaml file.
#
ExampleImport the library.
Then invoke the static share
method anywhere in your Dart code.
The share
method also takes an optional subject
that will be used when
sharing to email.
To share one or multiple files invoke the static shareFiles
method anywhere in your Dart code. Optionally you can also pass in text
and subject
.
If you are interested in the action your user performed with the share sheet, you can instead use the shareWithResult
and shareFilesWithResult
methods.