From 1a50fcc65ee933bd03c96e8ded9417908212c891 Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Wed, 20 Jan 2021 11:46:42 +0900 Subject: [PATCH] fixed max scroll offset for sectioned lists with spacing --- lib/widgets/common/grid/sliver.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/common/grid/sliver.dart b/lib/widgets/common/grid/sliver.dart index d5effa5f8..4c74a1688 100644 --- a/lib/widgets/common/grid/sliver.dart +++ b/lib/widgets/common/grid/sliver.dart @@ -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 {