From c4f1bdae17ef3ae829c2067f9fbe2a781464ee53 Mon Sep 17 00:00:00 2001 From: wurong <953969641@qq.com> Date: Wed, 22 Mar 2023 15:51:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E5=8F=91=E5=86=85=E5=AE=B9=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E4=BF=AE=E6=94=B9=EF=BC=9B=20=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E4=BF=AE=E6=94=B9=EF=BC=8C=20=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E5=9B=BE=E7=89=87=E6=98=BE=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/community/community_view/community_dynamic.dart | 2 +- lib/community/share_trends.dart | 2 +- lib/mine/scan_web.dart | 4 ++-- lib/view_widget/share_dialog.dart | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/community/community_view/community_dynamic.dart b/lib/community/community_view/community_dynamic.dart index da854f27..e067bc0c 100644 --- a/lib/community/community_view/community_dynamic.dart +++ b/lib/community/community_view/community_dynamic.dart @@ -556,7 +556,7 @@ class _CommunityDynamic extends State { "${widget?.article?.mainTitle ?? ""} ${buildShareUrl()}"; } else if (platform == ShareSDKPlatforms.douyin) { Navigator.of(context).popAndPushNamed('/router/share_trends', - arguments: {"articleId": widget.article.id}); + arguments: {"articleId": widget.article.id,"shareUrl":buildShareUrl()}); return; } else if (platform == ShareSDKPlatforms.facebook) { Navigator.of(context).popAndPushNamed('/router/chat_details_page', diff --git a/lib/community/share_trends.dart b/lib/community/share_trends.dart index 71190364..303cbd28 100644 --- a/lib/community/share_trends.dart +++ b/lib/community/share_trends.dart @@ -173,7 +173,7 @@ class _ShareTrends extends State{ '/router/scan_web', arguments: { "result": widget.arguments["shareUrl"], - "title":"", + "title":"一心回乡", }, ); }, diff --git a/lib/mine/scan_web.dart b/lib/mine/scan_web.dart index b738be34..ea778780 100644 --- a/lib/mine/scan_web.dart +++ b/lib/mine/scan_web.dart @@ -45,12 +45,12 @@ class _ScanWeb extends State { onWebViewCreated: (WebViewController controller){ webViewController =controller; }, - onProgress: (int progress) async { + onPageFinished: (String url) async { + EasyLoading.dismiss(); if(widget.arguments["title"] != null) return; title = await webViewController?.getTitle(); setState((){}); - EasyLoading.dismiss(); }, ), ); diff --git a/lib/view_widget/share_dialog.dart b/lib/view_widget/share_dialog.dart index 5a38f8a9..9de6fabf 100644 --- a/lib/view_widget/share_dialog.dart +++ b/lib/view_widget/share_dialog.dart @@ -80,6 +80,7 @@ class _ShareDialog extends State { platformIcons[platforms.indexOf(e)], width: 40, height: 40, + fit: BoxFit.fill, ), SizedBox( height:8.h,