share_everywhere 0.0.1 icon indicating copy to clipboard operation
share_everywhere: ^0.0.1 copied to clipboard

Social sharing for all platforms.

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")
          ],
        ),
      ),
    );
  }
9
likes
110
pub points
75%
popularity

Publisher

unverified uploader

Social sharing for all platforms.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter, share_plus, url_launcher

More

Packages that depend on share_everywhere