fix: 完善语义适配

This commit is contained in:
orz12
2024-03-01 02:06:51 +08:00
parent b0086f9013
commit 3c72fc6cf4
9 changed files with 24 additions and 12 deletions

View File

@@ -117,9 +117,10 @@ class _BangumiPanelState extends State<BangumiPanel> {
dense: false,
leading: index == currentIndex
? Image.asset(
'assets/images/live.gif',
'assets/images/live.png',
color: Theme.of(context).colorScheme.primary,
height: 12,
semanticLabel: "正在播放:",
)
: null,
title: Text(
@@ -135,6 +136,7 @@ class _BangumiPanelState extends State<BangumiPanel> {
? Image.asset(
'assets/images/big-vip.png',
height: 20,
semanticLabel: "大会员",
)
: const SizedBox(),
),
@@ -241,6 +243,7 @@ class _BangumiPanelState extends State<BangumiPanel> {
'assets/images/live.png',
color: Theme.of(context).colorScheme.primary,
height: 12,
semanticLabel: "正在播放:",
),
const SizedBox(width: 6)
],
@@ -260,6 +263,7 @@ class _BangumiPanelState extends State<BangumiPanel> {
Image.asset(
'assets/images/big-vip.png',
height: 16,
semanticLabel: "大会员",
),
],
if (widget.pages[i].badge != '会员') ...[