This package extends the share_plus experience on the desktop and web, by opening a dialog to select
a web platform to send to.
Supported sharing platform:
-
Email
-
Telegram
-
Whatsapp
-
Reddit
Pull request adding more are very welcome.
Install the package as a dependency using pub or git.
Import the library.
import 'package:share_plus_dialog/share_plus_dialog.dart';
Then invoke the static share
method anywhere in your Dart code.
ShareDialog.share(context, 'https://pub.dev/', platforms: SharePlatform.defaults, isUrl: true);
On desktop platforms and web it will open a dialog to choose where to share. On mobile platforms it keeps the functionality from the share_plus
plugin.
If you want to contribute a platform, setup a static SharePlatform getter inside the class and then add it to the defaults
list getter.