From 6f84eefbe4beae269d4ff21c0b5d952239495023 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Mon, 4 Sep 2023 11:16:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BD=AC=E5=8F=91=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E5=8A=A0=E4=B8=8A=E8=A7=86=E9=A2=91=E6=A0=87=E9=A2=98=20issues?= =?UTF-8?q?#63?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../video/detail/introduction/controller.dart | 3 ++- lib/pages/video/detail/widgets/app_bar.dart | 18 +++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/lib/pages/video/detail/introduction/controller.dart b/lib/pages/video/detail/introduction/controller.dart index 2b47a1da..71b63c71 100644 --- a/lib/pages/video/detail/introduction/controller.dart +++ b/lib/pages/video/detail/introduction/controller.dart @@ -330,7 +330,8 @@ class VideoIntroController extends GetxController { // 分享视频 Future actionShareVideo() async { - var result = await Share.share('${HttpString.baseUrl}/video/$bvid') + var result = await Share.share( + '${videoDetail.value.title} - ${HttpString.baseUrl}/video/$bvid') .whenComplete(() {}); return result; } diff --git a/lib/pages/video/detail/widgets/app_bar.dart b/lib/pages/video/detail/widgets/app_bar.dart index e21b4799..fb7822fb 100644 --- a/lib/pages/video/detail/widgets/app_bar.dart +++ b/lib/pages/video/detail/widgets/app_bar.dart @@ -48,15 +48,15 @@ class ScrollAppBar extends StatelessWidget { ], ), ), - actions: [ - IconButton( - onPressed: () {}, - icon: const Icon( - Icons.share, - size: 20, - )), - const SizedBox(width: 12) - ], + // actions: [ + // IconButton( + // onPressed: () {}, + // icon: const Icon( + // Icons.share, + // size: 20, + // )), + // const SizedBox(width: 12) + // ], ), ), ),