share_everywhere

Last updated:

0 purchases

share_everywhere Image
share_everywhere Images
Add to Cart

Description:

share everywhere

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';
copied to clipboard
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"),
],
);
copied to clipboard
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")
],
),
),
);
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.