share_handler 0.0.18 share_handler: ^0.0.18 copied to clipboard
A Flutter plugin to handle incoming shared text/media, as well as add share to suggestions/shortcuts.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add share_handler
With Flutter:
$ flutter pub add share_handler
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
share_handler: ^0.0.18
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:share_handler/share_handler.dart';