mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 完善语义适配
This commit is contained in:
@@ -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)
|
||||
],
|
||||
|
||||
@@ -157,6 +157,7 @@ class _SeasonPanelState extends State<SeasonPanel> {
|
||||
.colorScheme
|
||||
.primary,
|
||||
height: 12,
|
||||
semanticLabel: "正在播放:",
|
||||
)
|
||||
: null,
|
||||
title: Text(
|
||||
@@ -169,9 +170,6 @@ class _SeasonPanelState extends State<SeasonPanel> {
|
||||
.colorScheme
|
||||
.onSurface,
|
||||
),
|
||||
semanticsLabel: index == currentIndex
|
||||
? '当前播放:${episodes![index].title!}'
|
||||
: null,
|
||||
),
|
||||
),
|
||||
itemScrollController: itemScrollController,
|
||||
@@ -197,9 +195,10 @@ class _SeasonPanelState extends State<SeasonPanel> {
|
||||
),
|
||||
const SizedBox(width: 15),
|
||||
Image.asset(
|
||||
'assets/images/live.gif',
|
||||
'assets/images/live.png',
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
height: 12,
|
||||
semanticLabel: "正在播放:",
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
Text(
|
||||
|
||||
Reference in New Issue
Block a user