Skip to content

2-5-perceivers/share_plus_dialog

Repository files navigation

Share Plus Dialog

GitHub stars Package: share_plus_dialog Language: Dart License: MIT

A Flutter package that wraps share_plus to create sharing dialogs when share_plus is not available.

Screeshot

Features

Supported sharing platform:

  • Email

  • Telegram

  • Whatsapp

  • Reddit

  • Facebook

  • X (Twitter)

    Pull request adding more are very welcome.

Installation

To use this package, add share_plus_dialog as a dependency using:

flutter pub add share_plus_dialog

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, 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.