social_share_plus 0.0.1 copy "social_share_plus: ^0.0.1" to clipboard
social_share_plus: ^0.0.1 copied to clipboard

outdated

A plugin supports variety of sharing contents and sharing platforms.

social_share #

A plugin supports variety of sharing contents and sharing platforms.

Introduction #

Platforms Content OS
wechat Text/Image/Music/Video/WebPage/File Android/iOS
Facebook Text/Image/WebView/File Android/iOS
Line Text/Image/File Android/iOS
Twiter Text/Image/File Android/iOS
WhatsApp Text/Image/File Andorid/iOS
SystemShare --- ---

Preview #

all.png    facebook.png

wechat.png!    line.png

Usage #

reigster #

 LaShareRegister register = LaShareRegister();
    register.setupWechat(appId, secretKey, universalLink); //only need wechat 
    LaSharePlugin.registerPlatforms(register);

share #

1.construct share data**

LaShareParamsBean generateBean() {
        return LaShareParamsBean(
              contentType: LaShareContentTypes.webpage,
              platform: LaSharePlatforms.whatsApp,
              webUrl: webUrl,
              title: title,
              text: desc,
              imageFilePath: imgFilePath,
            );
    }

2.start share

 LaSharePlugin.share(
          generateBean(),
          notInstallCallBack,
          successCallBack,
          errorCallBack,
        );

3. check App whether install

LaSharePlugin.isClientInstalled(LaSharePlatforms.whatsApp);

4. pop share dialog

   LaSharePlugin.startShare(generateBean(),notInstallCallBack,successCallBack,errorCallBack);

Attention #

  1. iOS wechat image share use the SystemShare because wechat forbidden the image share for foreign.
  2. You should add some scheme config for accessing outer apps. Refer to example configuration.
7
likes
0
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

A plugin supports variety of sharing contents and sharing platforms.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on social_share_plus

Packages that implement social_share_plus