|
...
|
...
|
@@ -1475,7 +1475,8 @@ class Utils { |
|
|
|
title: _title,
|
|
|
|
path: _path,
|
|
|
|
description: _description,
|
|
|
|
thumbData: result
|
|
|
|
thumbData: Platform.isIOS ? null : result,
|
|
|
|
hdImageData: result
|
|
|
|
// thumbnail: WeChatImage.binary(source)
|
|
|
|
);
|
|
|
|
bool isShare = await fluwx.share(model);
|
|
...
|
...
|
@@ -1528,7 +1529,8 @@ class Utils { |
|
|
|
|
|
|
|
// thumbnail: WeChatImage.binary(source)
|
|
|
|
|
|
|
|
thumbData: result);
|
|
|
|
thumbData: Platform.isIOS ? null : result,
|
|
|
|
hdImageData: result);
|
|
|
|
bool isShare = await fluwx.share(model);
|
|
|
|
print(isShare);
|
|
|
|
Loading.hideLoading(context);
|
|
...
|
...
|
@@ -1560,6 +1562,7 @@ class Utils { |
|
|
|
String _description = "OneKey";
|
|
|
|
// Uint8List source = await testComporessList(context, _thumbnail);
|
|
|
|
Fluwx fluwx = Fluwx();
|
|
|
|
Uint8List? result = await WxSdk.fetchImageAsUint8List(_thumbnail);
|
|
|
|
var model = new WeChatShareMiniProgramModel(
|
|
|
|
// miniProgramType: , //体验版
|
|
|
|
miniProgramType: Constant.wxMiniProgramType, //正式版
|
|
...
|
...
|
@@ -1573,7 +1576,8 @@ class Utils { |
|
|
|
|
|
|
|
// thumbnail: WeChatImage.binary(source)
|
|
|
|
|
|
|
|
thumbData: await WxSdk.fetchImageAsUint8List(_thumbnail));
|
|
|
|
thumbData: Platform.isIOS ? null : result,
|
|
|
|
hdImageData: result);
|
|
|
|
bool isShare = await fluwx.share(model);
|
|
|
|
print(isShare);
|
|
|
|
Loading.hideLoading(context);
|
|
...
|
...
|
@@ -1617,7 +1621,8 @@ class Utils { |
|
|
|
title: _title,
|
|
|
|
path: _path,
|
|
|
|
description: _description,
|
|
|
|
thumbData: result
|
|
|
|
thumbData: Platform.isIOS ? null : result,
|
|
|
|
hdImageData: result
|
|
|
|
// thumbnail: WeChatImage.binary(source)
|
|
|
|
);
|
|
|
|
bool isShare = await fluwx.share(model);
|
|
...
|
...
|
@@ -2056,7 +2061,8 @@ class Utils { |
|
|
|
miniProgramType: Constant.wxMiniProgramType, //正式版
|
|
|
|
// miniProgramType: //开发版
|
|
|
|
// thumbnail: WeChatImage.binary(source)
|
|
|
|
thumbData: result
|
|
|
|
thumbData: Platform.isIOS ? null : result,
|
|
|
|
hdImageData: result
|
|
|
|
// thumbnail: WeChatImage.binary(image)
|
|
|
|
);
|
|
|
|
//分享链接
|
|
...
|
...
|
@@ -2108,19 +2114,20 @@ class Utils { |
|
|
|
//跳转小程序
|
|
|
|
Fluwx fluwx = Fluwx();
|
|
|
|
var model = new WeChatShareMiniProgramModel(
|
|
|
|
webPageUrl: _webPageUrl,
|
|
|
|
userName: _userName,
|
|
|
|
title: _title,
|
|
|
|
path: _path,
|
|
|
|
// description: 'hhh',
|
|
|
|
// miniProgramType: , //体验版
|
|
|
|
miniProgramType: Constant.wxMiniProgramType, //正式版
|
|
|
|
// miniProgramType: //开发版
|
|
|
|
// thumbnail: WeChatImage.binary(source)
|
|
|
|
thumbData: result,
|
|
|
|
// hdImagePath: WeChatImage.network(_thumbnail), thumbnail: null,
|
|
|
|
// thumbnail: WeChatImage.binary(image)
|
|
|
|
);
|
|
|
|
webPageUrl: _webPageUrl,
|
|
|
|
userName: _userName,
|
|
|
|
title: _title,
|
|
|
|
path: _path,
|
|
|
|
// description: 'hhh',
|
|
|
|
// miniProgramType: , //体验版
|
|
|
|
miniProgramType: Constant.wxMiniProgramType, //正式版
|
|
|
|
// miniProgramType: //开发版
|
|
|
|
// thumbnail: WeChatImage.binary(source)
|
|
|
|
thumbData: Platform.isIOS ? null : result,
|
|
|
|
hdImageData: result
|
|
|
|
// hdImagePath: WeChatImage.network(_thumbnail), thumbnail: null,
|
|
|
|
// thumbnail: WeChatImage.binary(image)
|
|
|
|
);
|
|
|
|
//分享链接
|
|
|
|
// var model = WeChatShareWebPageModel(
|
|
|
|
// // 'https://xt04.colorcun.com/h5/index.html#/?id=$rid&hasInvitation=1',
|
|
...
|
...
|
@@ -2213,6 +2220,7 @@ class Utils { |
|
|
|
}
|
|
|
|
// print(result!.length/1024);
|
|
|
|
//跳转小程序
|
|
|
|
|
|
|
|
Fluwx fluwx = Fluwx();
|
|
|
|
var model = new WeChatShareMiniProgramModel(
|
|
|
|
webPageUrl: _webPageUrl,
|
|
...
|
...
|
@@ -2224,7 +2232,8 @@ class Utils { |
|
|
|
miniProgramType: Constant.wxMiniProgramType, //正式版
|
|
|
|
// miniProgramType: //开发版
|
|
|
|
// thumbnail: WeChatImage.binary(source)
|
|
|
|
thumbData: result
|
|
|
|
thumbData: Platform.isIOS ? null : result,
|
|
|
|
hdImageData: result
|
|
|
|
// hdImagePath: WeChatImage.network(_thumbnail), thumbnail: null,
|
|
|
|
// thumbnail: WeChatImage.binary(image)
|
|
|
|
);
|
|
...
|
...
|
@@ -2288,7 +2297,8 @@ class Utils { |
|
|
|
miniProgramType: Constant.wxMiniProgramType, //正式版
|
|
|
|
// miniProgramType: //开发版
|
|
|
|
// thumbnail: WeChatImage.binary(source)
|
|
|
|
thumbData: result
|
|
|
|
thumbData: Platform.isIOS ? null : result,
|
|
|
|
hdImageData: result
|
|
|
|
// thumbnail: WeChatImage.binary(image)
|
|
|
|
);
|
|
|
|
//分享链接
|
|
...
|
...
|
@@ -3151,7 +3161,8 @@ class Utils { |
|
|
|
// miniProgramType: //开发版
|
|
|
|
// thumbnail: WeChatImage.binary(source)
|
|
|
|
// thumbnail: WeChatImage.network(_thumbnail)
|
|
|
|
thumbData: result);
|
|
|
|
thumbData: Platform.isIOS ? null : result,
|
|
|
|
hdImageData: result);
|
|
|
|
|
|
|
|
isSuccess = await fluwx.share(model);
|
|
|
|
} else {
|
|
...
|
...
|
@@ -3358,7 +3369,9 @@ class Utils { |
|
|
|
// miniProgramType: //开发版
|
|
|
|
// thumbnail: WeChatImage.binary(source)
|
|
|
|
// thumbnail: WeChatImage.network(_thumbnail)
|
|
|
|
thumbData: _thumbnailUint8List);
|
|
|
|
|
|
|
|
thumbData: Platform.isIOS ? null : _thumbnailUint8List,
|
|
|
|
hdImageData: _thumbnailUint8List);
|
|
|
|
|
|
|
|
// thumbData: );
|
|
|
|
|
...
|
...
|
|