mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
mod: 合并episodes容错修改
This commit is contained in:
@@ -173,9 +173,9 @@ class _SeasonPanelState extends State<SeasonPanel> {
|
|||||||
bottom: MediaQuery.of(context).padding.bottom),
|
bottom: MediaQuery.of(context).padding.bottom),
|
||||||
child: Material(
|
child: Material(
|
||||||
child: ScrollablePositionedList.builder(
|
child: ScrollablePositionedList.builder(
|
||||||
itemCount: episodes.length,
|
itemCount: episodes!.length,
|
||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (BuildContext context, int index) {
|
||||||
bool isLastItem = index == episodes.length - 1;
|
bool isLastItem = index == episodes!.length - 1;
|
||||||
bool isCurrentIndex = currentIndex == index;
|
bool isCurrentIndex = currentIndex == index;
|
||||||
return isLastItem
|
return isLastItem
|
||||||
? SizedBox(
|
? SizedBox(
|
||||||
@@ -185,7 +185,7 @@ class _SeasonPanelState extends State<SeasonPanel> {
|
|||||||
20,
|
20,
|
||||||
)
|
)
|
||||||
: buildEpisodeListItem(
|
: buildEpisodeListItem(
|
||||||
episodes[index],
|
episodes![index],
|
||||||
index,
|
index,
|
||||||
isCurrentIndex,
|
isCurrentIndex,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user