#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? leadingScrollOffset,
|
||||||
double? trailingScrollOffset,
|
double? trailingScrollOffset,
|
||||||
}) {
|
}) {
|
||||||
return childManager.estimateMaxScrollOffset(
|
// default implementation is an estimation via `childManager.estimateMaxScrollOffset()`
|
||||||
constraints,
|
// but we have the accurate offset via pre-computed section layouts
|
||||||
firstIndex: firstIndex,
|
return _sectionLayouts.last.maxOffset;
|
||||||
lastIndex: lastIndex,
|
|
||||||
leadingScrollOffset: leadingScrollOffset,
|
|
||||||
trailingScrollOffset: trailingScrollOffset,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
double computeMaxScrollOffset(SliverConstraints constraints) {
|
double computeMaxScrollOffset(SliverConstraints constraints) {
|
||||||
|
|
Loading…
Reference in a new issue