|
|
@@ -252,7 +252,7 @@ class _ShareAlertContentState extends State<_ShareAlertContent> { |
|
|
|
widget.model?.title ?? '', |
|
|
|
widget.model?.content ?? '', |
|
|
|
Platform.isIOS ? widget.model.image : null, |
|
|
|
Platform.isAndroid ? widget.model.image.first : null, |
|
|
|
Platform.isAndroid ? widget?.model?.image?.first : null, |
|
|
|
null, |
|
|
|
widget.model.url, |
|
|
|
null, |
|
|
@@ -263,6 +263,7 @@ class _ShareAlertContentState extends State<_ShareAlertContent> { |
|
|
|
); |
|
|
|
} |
|
|
|
SharesdkPlugin.share(plateform, params, (SSDKResponseState state, Map userdata, Map contentEntity, SSDKError error) { |
|
|
|
print(error); |
|
|
|
if (state == SSDKResponseState.Fail) { |
|
|
|
Fluttertoast.showToast(msg: '分享失败'); |
|
|
|
} else if (state == SSDKResponseState.Success) { |
|
|
|