mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 多行标题无障碍适配
This commit is contained in:
@@ -189,7 +189,6 @@ class VideoContent extends StatelessWidget {
|
||||
? Theme.of(context).colorScheme.primary
|
||||
: Theme.of(context).colorScheme.onSurface,
|
||||
),
|
||||
semanticsLabel: i['text'] as String,
|
||||
),
|
||||
]
|
||||
],
|
||||
|
||||
@@ -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 +=
|
||||
|
||||
Reference in New Issue
Block a user