mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 合并episodes容错修改
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user