A Flutter package that wraps share_plus to create sharing dialogs when share_plus is not available.
Supported sharing platform:
-
Email
-
Telegram
-
Whatsapp
-
Reddit
-
Facebook
-
X (Twitter)
Pull request adding more are very welcome.
To use this package, add share_plus_dialog as a dependency using:
flutter pub add share_plus_dialog
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, body: 'https://pub.dev/', platforms: SharePlatform.defaults);
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.