fixed max scroll offset for sectioned lists with spacing

This commit is contained in:
Thibault Deckers 2021-01-20 11:46:42 +09:00
parent 695f8de2a4
commit 1a50fcc65e

View file

@ -215,7 +215,7 @@ class _RenderSliverKnownExtentBoxAdaptor extends RenderSliverMultiBoxAdaptor {
if (child == null) {
// We have run out of children.
final layout = sectionAtIndex(index) ?? sectionLayouts.last;
estimatedMaxScrollOffset = layout.indexToLayoutOffset(index);
estimatedMaxScrollOffset = layout.maxOffset;
break;
}
} else {