From 7c2518bcd2d035bb1cffe8418a503696af28e5bd Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sat, 19 Aug 2023 11:34:36 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E9=A6=96=E9=A1=B5=E6=8E=A8=E8=8D=90pict?= =?UTF-8?q?ure=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common/widgets/video_card_v.dart | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/common/widgets/video_card_v.dart b/lib/common/widgets/video_card_v.dart index a9898c43..53300d3e 100644 --- a/lib/common/widgets/video_card_v.dart +++ b/lib/common/widgets/video_card_v.dart @@ -60,6 +60,16 @@ class VideoCardV extends StatelessWidget { 'heroTag': heroTag, }); break; + default: + SmartDialog.showToast(videoItem.goto); + Get.toNamed( + '/webview', + parameters: { + 'url': videoItem.uri, + 'type': 'url', + 'pageTitle': videoItem.title, + }, + ); } } @@ -151,6 +161,15 @@ class VideoContent extends StatelessWidget { type: 'color', ) ], + if (videoItem.goto == 'picture') ...[ + const PBadge( + text: '动态', + stack: 'normal', + size: 'small', + type: 'line', + fs: 9, + ) + ], Expanded( child: Text( videoItem.owner.name,