#123 improved scroll bar / position stability
This commit is contained in:
parent
5e2731484e
commit
8cb88cc12c
1 changed files with 3 additions and 7 deletions
|
@ -97,13 +97,9 @@ class _RenderSliverKnownExtentBoxAdaptor extends RenderSliverMultiBoxAdaptor {
|
|||
double? leadingScrollOffset,
|
||||
double? trailingScrollOffset,
|
||||
}) {
|
||||
return childManager.estimateMaxScrollOffset(
|
||||
constraints,
|
||||
firstIndex: firstIndex,
|
||||
lastIndex: lastIndex,
|
||||
leadingScrollOffset: leadingScrollOffset,
|
||||
trailingScrollOffset: trailingScrollOffset,
|
||||
);
|
||||
// default implementation is an estimation via `childManager.estimateMaxScrollOffset()`
|
||||
// but we have the accurate offset via pre-computed section layouts
|
||||
return _sectionLayouts.last.maxOffset;
|
||||
}
|
||||
|
||||
double computeMaxScrollOffset(SliverConstraints constraints) {
|
||||
|
|
Loading…
Reference in a new issue