share_everywhere 0.0.2 copy "share_everywhere: ^0.0.2" to clipboard
share_everywhere: ^0.0.2 copied to clipboard

Social sharing for all platforms. This plugin is a wrapper for the native share plugin for Android, iOS and Web.

share_everywhere #

Create a share button for all platforms.

On Android and IOS the share_plus functionality is used.

On Mac, Linux and Windows a popup is shown with the configured networks.

Usage #

import the package

import 'package:share_everywhere/share_everywhere.dart';

create a controller

ShareController shareController = ShareController(
    title: "Share on:",
    elevatedButtonText: Text("Share"),
    networks: [
      SocialConfig(type: "facebook", appId: "your-facebook-app-id"),
      SocialConfig(type: "linkedin"),
      SocialConfig(type: "twitter"),
    ],
  );

show the share button in a widget

Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'Click the share button below:',
            ),
            ShareButton(shareController, "https://example.com")
          ],
        ),
      ),
    );
  }
10
likes
120
pub points
71%
popularity

Publisher

unverified uploader

Social sharing for all platforms. This plugin is a wrapper for the native share plugin for Android, iOS and Web.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, share_plus, url_launcher

More

Packages that depend on share_everywhere