Skip to content
pubscout

flutter_social_share_plugin

2.1.4, released a year ago by an unverified publisher

Flutter plugin for sharing contents, text, and URLs to various social media platforms.

$ flutter pub add flutter_social_share_plugin
Source repository

What it does

Allows Flutter applications to share text, URLs, and local images/files to social networks like Facebook, WhatsApp, Twitter, Instagram, Telegram, as well as SMS, email, and system share dialogs.

AI-written summary of version 2.1.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need direct integrations to share content to specific apps like WhatsApp, Facebook, or Twitter.
  • You want to share local media files (images) or text directly to social platforms.

Skip it when

  • You only need a generic system share dialog (where `share_plus` might be simpler).
  • You want a zero-setup solution without platform-specific configurations like URL schemes.

Strengths

  • Supports multiple social channels including WhatsApp Business and Telegram.
  • Provides methods for specific platform payloads like image paths and mail bodies.

Weaknesses

  • Requires manual configuration of AndroidManifest.xml and Info.plist queries/schemes for each platform.
  • Some APIs and platform apps are not universally supported (e.g., WhatsApp Business on iOS throws unimplemented error).

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
0

Requires platform-specific setup including adding queries/schemes for apps like WhatsApp, Facebook, Twitter, and SMS in AndroidManifest.xml and Info.plist.

import 'package:flutter_social_share_plugin/flutter_social_share_plugin.dart';

// Share to Twitter
await FlutterSocialSharePlugin.shareToTwitter(msg: 'Hello Twitter', url: 'https://flutter.dev');

Alternatives

Packages that do the same job and could replace flutter_social_share_plugin.

  • share_plus

    It is a widely used and actively maintained community standard for system-level sharing.