From b72c9513893083302149e96fa078627884149573 Mon Sep 17 00:00:00 2001 From: orz12 Date: Sat, 2 Mar 2024 08:45:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=9A=E8=A1=8C=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E6=97=A0=E9=9A=9C=E7=A2=8D=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common/widgets/video_card_h.dart | 1 - lib/utils/utils.dart | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/common/widgets/video_card_h.dart b/lib/common/widgets/video_card_h.dart index 9f9cfc75..6109e37f 100644 --- a/lib/common/widgets/video_card_h.dart +++ b/lib/common/widgets/video_card_h.dart @@ -189,7 +189,6 @@ class VideoContent extends StatelessWidget { ? Theme.of(context).colorScheme.primary : Theme.of(context).colorScheme.onSurface, ), - semanticsLabel: i['text'] as String, ), ] ], diff --git a/lib/utils/utils.dart b/lib/utils/utils.dart index 32ee19e0..f6e3fed8 100644 --- a/lib/utils/utils.dart +++ b/lib/utils/utils.dart @@ -80,7 +80,12 @@ class Utils { semanticsLabel += '番剧,'; } } - semanticsLabel += '${videoItem.title}'; + if (videoItem.title is String) { + semanticsLabel += videoItem.title; + } else { + semanticsLabel += videoItem.title.map((e) => e['text'] as String).join(''); + } + if (!emptyStatCheck(videoItem.stat.view)) { semanticsLabel += ',${Utils.numFormat(videoItem.stat.view)}'; semanticsLabel +=