From 424bdd9fffcb042f3cf0825940fc6df560398ce9 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sat, 14 Oct 2023 22:59:25 +0800 Subject: [PATCH] mod: issues #177 --- lib/pages/video/detail/introduction/view.dart | 55 +++++-------------- 1 file changed, 14 insertions(+), 41 deletions(-) diff --git a/lib/pages/video/detail/introduction/view.dart b/lib/pages/video/detail/introduction/view.dart index 1c9520a8..d07b30fd 100644 --- a/lib/pages/video/detail/introduction/view.dart +++ b/lib/pages/video/detail/introduction/view.dart @@ -239,49 +239,22 @@ class _VideoInfoState extends State with TickerProviderStateMixin { crossAxisAlignment: CrossAxisAlignment.start, children: [ GestureDetector( - behavior: HitTestBehavior.translucent, - onTap: () => showIntroDetail(), - child: Row( - children: [ - Expanded( - child: Text( - !loadingStatus - ? widget.videoDetail!.title - : videoItem['title'], - style: const TextStyle( - fontSize: 16, - fontWeight: FontWeight.w500, - ), - maxLines: 1, - overflow: TextOverflow.ellipsis, + behavior: HitTestBehavior.translucent, + onTap: () => showIntroDetail(), + child: Padding( + padding: const EdgeInsets.only(bottom: 6), + child: Text( + !loadingStatus + ? widget.videoDetail!.title + : videoItem['title'], + style: const TextStyle( + fontSize: 16, + fontWeight: FontWeight.w500, ), + maxLines: 2, + overflow: TextOverflow.ellipsis, ), - const SizedBox(width: 20), - Opacity( - opacity: loadingStatus ? 0 : 1, - child: SizedBox( - width: 34, - height: 34, - child: IconButton( - style: ButtonStyle( - padding: - MaterialStateProperty.all(EdgeInsets.zero), - backgroundColor: - MaterialStateProperty.resolveWith((states) { - return t.highlightColor.withOpacity(0.2); - }), - ), - onPressed: showIntroDetail, - icon: Icon( - Icons.more_horiz, - color: Theme.of(context).colorScheme.primary, - ), - ), - ), - ), - ], - ), - ), + )), GestureDetector( behavior: HitTestBehavior.translucent, onTap: () => showIntroDetail(),