share_plus_dialog

pub package

This package extends the share_plus experience on the desktop and web, by opening a dialog to select
a web platform to send to.

Screeshot Screenshot 2

Features

Supported sharing platform:

  • Email

  • Telegram

  • Whatsapp

  • Reddit

    Pull request adding more are very welcome.

Getting started

Install the package as a dependency using pub or git.

Usage

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.

Additional information

If you want to contribute a platform, setup a static SharePlatform getter inside the class and then add it to the defaults list getter.

Libraries

share_plus_dialog