|
|
@@ -1,7 +1,9 @@ |
|
|
|
import 'dart:io'; |
|
|
|
import 'dart:ui'; |
|
|
|
|
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:sharesdk_plugin/sharesdk_plugin.dart'; |
|
|
|
import 'package:zhiying_base_widget/utils/image_download_util/image_download_util.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/share/models/share_data_model.dart'; |
|
|
|
import 'package:zhiying_base_widget/widgets/share/models/share_plateform.dart'; |
|
|
|
import 'package:zhiying_comm/zhiying_comm.dart'; |
|
|
@@ -151,7 +153,7 @@ class _ShareAlertContent extends StatelessWidget { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
void _shareByMob(SharePlateform plateform) { |
|
|
|
void _shareByMob(SharePlateform plateform) async { |
|
|
|
//单独公共分享 |
|
|
|
SSDKMap params = SSDKMap() |
|
|
|
..setGeneral( |
|
|
@@ -186,10 +188,9 @@ class _ShareAlertContent extends StatelessWidget { |
|
|
|
break; |
|
|
|
} |
|
|
|
if (model.image is List && (model.image as List).length > 1) { |
|
|
|
// p = ShareSDKPlatforms.sina; |
|
|
|
// Share.shareFiles(model.image); |
|
|
|
ShareExtend.share( |
|
|
|
"share text", "text"); |
|
|
|
List<String> paths = await ImageDownloadUtil.download(model.image); |
|
|
|
ShareExtend.shareMultiple( |
|
|
|
paths, "image", subject: ""); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|