Browse Source

转发内容跳转修改;

分享跳转修改,
分享图片显示修改
dart3_last
wurong 2 years ago
parent
commit
c4f1bdae17
  1. 2
      lib/community/community_view/community_dynamic.dart
  2. 2
      lib/community/share_trends.dart
  3. 4
      lib/mine/scan_web.dart
  4. 1
      lib/view_widget/share_dialog.dart

2
lib/community/community_view/community_dynamic.dart

@ -556,7 +556,7 @@ class _CommunityDynamic extends State<CommunityDynamic> {
"${widget?.article?.mainTitle ?? ""} ${buildShareUrl()}"; "${widget?.article?.mainTitle ?? ""} ${buildShareUrl()}";
} else if (platform == ShareSDKPlatforms.douyin) { } else if (platform == ShareSDKPlatforms.douyin) {
Navigator.of(context).popAndPushNamed('/router/share_trends', Navigator.of(context).popAndPushNamed('/router/share_trends',
arguments: {"articleId": widget.article.id}); arguments: {"articleId": widget.article.id,"shareUrl":buildShareUrl()});
return; return;
} else if (platform == ShareSDKPlatforms.facebook) { } else if (platform == ShareSDKPlatforms.facebook) {
Navigator.of(context).popAndPushNamed('/router/chat_details_page', Navigator.of(context).popAndPushNamed('/router/chat_details_page',

2
lib/community/share_trends.dart

@ -173,7 +173,7 @@ class _ShareTrends extends State<ShareTrends>{
'/router/scan_web', '/router/scan_web',
arguments: { arguments: {
"result": widget.arguments["shareUrl"], "result": widget.arguments["shareUrl"],
"title":"", "title":"一心回乡",
}, },
); );
}, },

4
lib/mine/scan_web.dart

@ -45,12 +45,12 @@ class _ScanWeb extends State<ScanWeb> {
onWebViewCreated: (WebViewController controller){ onWebViewCreated: (WebViewController controller){
webViewController =controller; webViewController =controller;
}, },
onProgress: (int progress) async { onPageFinished: (String url) async {
EasyLoading.dismiss();
if(widget.arguments["title"] != null) if(widget.arguments["title"] != null)
return; return;
title = await webViewController?.getTitle(); title = await webViewController?.getTitle();
setState((){}); setState((){});
EasyLoading.dismiss();
}, },
), ),
); );

1
lib/view_widget/share_dialog.dart

@ -80,6 +80,7 @@ class _ShareDialog extends State<ShareDialog> {
platformIcons[platforms.indexOf(e)], platformIcons[platforms.indexOf(e)],
width: 40, width: 40,
height: 40, height: 40,
fit: BoxFit.fill,
), ),
SizedBox( SizedBox(
height:8.h, height:8.h,

Loading…
Cancel
Save