Skip to content

Commit

Permalink
Merge branch 'fix-issues#620'
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhigq committed Mar 19, 2024
2 parents af96d16 + f41bb02 commit 00b81b1
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 @@ -148,9 +148,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 00b81b1

Please sign in to comment.