fix: 番剧集数错误、合集最后一集不显示

This commit is contained in:
orz12
2024-03-07 10:54:55 +08:00
parent e2651f3c82
commit cad2a66556
2 changed files with 12 additions and 10 deletions

View File

@@ -173,9 +173,9 @@ class _SeasonPanelState extends State<SeasonPanel> {
bottom: MediaQuery.of(context).padding.bottom),
child: Material(
child: ScrollablePositionedList.builder(
itemCount: episodes!.length,
itemCount: episodes!.length + 1,
itemBuilder: (BuildContext context, int index) {
bool isLastItem = index == episodes!.length - 1;
bool isLastItem = index == episodes!.length;
bool isCurrentIndex = currentIndex == index;
return isLastItem
? SizedBox(