mod: 合并episodes容错修改

This commit is contained in:
orz12
2024-03-06 18:25:03 +08:00
parent 8c9516c654
commit f6d04b929d

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,
itemBuilder: (BuildContext context, int index) {
bool isLastItem = index == episodes.length - 1;
bool isLastItem = index == episodes!.length - 1;
bool isCurrentIndex = currentIndex == index;
return isLastItem
? SizedBox(
@@ -185,7 +185,7 @@ class _SeasonPanelState extends State<SeasonPanel> {
20,
)
: buildEpisodeListItem(
episodes[index],
episodes![index],
index,
isCurrentIndex,
);