fixed section layout when scrolled offset gets beyond last section
This commit is contained in:
parent
4e70eb9870
commit
ddb282579d
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class RenderSliverKnownExtentBoxAdaptor extends RenderSliverMultiBoxAdaptor {
|
|||
}
|
||||
|
||||
int getMinChildIndexForScrollOffset(double scrollOffset) {
|
||||
return sectionAtOffset(scrollOffset).getMinChildIndexForScrollOffset(scrollOffset);
|
||||
return sectionAtOffset(scrollOffset)?.getMinChildIndexForScrollOffset(scrollOffset) ?? 0;
|
||||
}
|
||||
|
||||
int getMaxChildIndexForScrollOffset(double scrollOffset) {
|
||||
|
|
Loading…
Reference in a new issue