mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: add index for listsheet items
This commit is contained in:
@@ -134,15 +134,24 @@ class _ListSheetContentState extends State<ListSheetContent> {
|
|||||||
: Theme.of(context).colorScheme.onSurface,
|
: Theme.of(context).colorScheme.onSurface,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
trailing: episode.badge == null
|
trailing: Row(
|
||||||
? null
|
mainAxisSize: MainAxisSize.min,
|
||||||
: (episode.badge == '会员'
|
children: [
|
||||||
? Image.asset(
|
if (episode.badge != null) ...[
|
||||||
'assets/images/big-vip.png',
|
if (episode.badge == '会员')
|
||||||
height: 20,
|
Image.asset(
|
||||||
semanticLabel: "大会员",
|
'assets/images/big-vip.png',
|
||||||
)
|
height: 20,
|
||||||
: Text(episode.badge)),
|
semanticLabel: "大会员",
|
||||||
|
),
|
||||||
|
if (episode.badge != '会员') Text(episode.badge),
|
||||||
|
const SizedBox(width: 10),
|
||||||
|
],
|
||||||
|
if (!(episode.runtimeType.toString() == 'EpisodeItem' &&
|
||||||
|
(episode.longTitle != null && episode.longTitle != '')))
|
||||||
|
Text('${index + 1}/${widget.episodes!.length}'),
|
||||||
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user