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

@@ -144,11 +144,12 @@ class _PagesPanelState extends State<PagesPanel> {
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(
@@ -209,9 +210,10 @@ class _PagesPanelState extends State<PagesPanel> {
children: <Widget>[
if (i == currentIndex) ...<Widget>[
Image.asset(
'assets/images/live.gif',
'assets/images/live.png',
color: Theme.of(context).colorScheme.primary,
height: 12,
semanticLabel: "正在播放:",
),
const SizedBox(width: 6)
],