Skip to content

Commit

Permalink
fix: 合集最后一p不显示 issues #620
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhigq committed Mar 8, 2024
1 parent 3bf6136 commit f41bb02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/pages/bangumi/widgets/bangumi_panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ class _BangumiPanelState extends State<BangumiPanel> {
Expanded(
child: Material(
child: ScrollablePositionedList.builder(
itemCount: widget.pages.length,
itemCount: widget.pages.length + 1,
itemBuilder: (BuildContext context, int index) {
bool isLastItem = index == widget.pages.length - 1;
bool isLastItem = index == widget.pages.length;
bool isCurrentIndex = currentIndex == index;
return isLastItem
? SizedBox(
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/video/detail/introduction/widgets/season.dart
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ class _SeasonPanelState extends State<SeasonPanel> {
Expanded(
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(
Expand Down

0 comments on commit f41bb02

Please sign in to comment.