From 43e0e4a428fd1e0a889511faf9eac07dd007b20a Mon Sep 17 00:00:00 2001 From: orz12 Date: Thu, 22 Feb 2024 17:07:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=A8=E8=8D=90=E9=A1=B5=E4=BD=9C?= =?UTF-8?q?=E8=80=85=E8=B6=85=E9=95=BF=E9=99=90=E5=88=B6=E3=80=81=E8=A1=8C?= =?UTF-8?q?=E9=AB=98=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common/widgets/video_card_v.dart | 38 ++++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/lib/common/widgets/video_card_v.dart b/lib/common/widgets/video_card_v.dart index b013a978..b3126f98 100644 --- a/lib/common/widgets/video_card_v.dart +++ b/lib/common/widgets/video_card_v.dart @@ -159,13 +159,13 @@ class VideoCardV extends StatelessWidget { ), ), if (videoItem.duration > 0) - PBadge( - bottom: 6, - right: 7, - size: 'small', - type: 'gray', - text: Utils.timeFormat(videoItem.duration), - ) + PBadge( + bottom: 6, + right: 7, + size: 'small', + type: 'gray', + text: Utils.timeFormat(videoItem.duration), + ) ], ); }), @@ -181,9 +181,7 @@ class VideoCardV extends StatelessWidget { class VideoContent extends StatelessWidget { final dynamic videoItem; - const VideoContent( - {Key? key, required this.videoItem}) - : super(key: key); + const VideoContent({Key? key, required this.videoItem}) : super(key: key); @override Widget build(BuildContext context) { return Expanded( @@ -196,18 +194,19 @@ class VideoContent extends StatelessWidget { Row( children: [ Expanded( - child: Text( - videoItem.title, - maxLines: 2, - overflow: TextOverflow.ellipsis, - ), + child: Text(videoItem.title, + maxLines: 2, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + height: 1.45, + )), ), ], ), - const SizedBox(height: 2), - VideoStat( - videoItem: videoItem, - ), + const SizedBox(height: 2), + VideoStat( + videoItem: videoItem, + ), Row( children: [ if (videoItem.goto == 'bangumi') ...[ @@ -250,6 +249,7 @@ class VideoContent extends StatelessWidget { child: Text( videoItem.owner.name, maxLines: 1, + overflow: TextOverflow.ellipsis, style: TextStyle( fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,