|
@@ -208,11 +208,11 @@ class _RenderRefreshSliverLoad extends RenderSliverSingleBoxAdapter {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- // The new layout extent this sliver should now have.
|
|
|
|
|
|
+ // The layout extent this sliver should now have.
|
|
final double layoutExtent =
|
|
final double layoutExtent =
|
|
(_hasLayoutExtent || enableInfiniteLoad ? 1.0 : 0.0) *
|
|
(_hasLayoutExtent || enableInfiniteLoad ? 1.0 : 0.0) *
|
|
_loadIndicatorExtent;
|
|
_loadIndicatorExtent;
|
|
- // If the new layoutExtent instructive changed, the SliverGeometry's
|
|
|
|
|
|
+ // If the layoutExtent instructive changed, the SliverGeometry's
|
|
// layoutExtent will take that value (on the next performLayout run). Shift
|
|
// layoutExtent will take that value (on the next performLayout run). Shift
|
|
// the scroll offset first so it doesn't make the scroll position suddenly jump.
|
|
// the scroll offset first so it doesn't make the scroll position suddenly jump.
|
|
/*if (layoutExtent != layoutExtentOffsetCompensation) {
|
|
/*if (layoutExtent != layoutExtentOffsetCompensation) {
|
|
@@ -222,7 +222,7 @@ class _RenderRefreshSliverLoad extends RenderSliverSingleBoxAdapter {
|
|
layoutExtentOffsetCompensation = layoutExtent;
|
|
layoutExtentOffsetCompensation = layoutExtent;
|
|
// Return so we don't have to do temporary accounting and adjusting the
|
|
// Return so we don't have to do temporary accounting and adjusting the
|
|
// child's constraints accounting for this one transient frame using a
|
|
// child's constraints accounting for this one transient frame using a
|
|
- // combination of existing layout extent, new layout extent change and
|
|
|
|
|
|
+ // combination of existing layout extent, layout extent change and
|
|
// the overlap.
|
|
// the overlap.
|
|
return;
|
|
return;
|
|
}*/
|
|
}*/
|
|
@@ -404,7 +404,7 @@ typedef BindLoadIndicator = void Function(
|
|
/// [RefreshSliverLoadControl] is part of the scrollable and actively occupies
|
|
/// [RefreshSliverLoadControl] is part of the scrollable and actively occupies
|
|
/// scrollable space.
|
|
/// scrollable space.
|
|
class RefreshSliverLoadControl extends StatefulWidget {
|
|
class RefreshSliverLoadControl extends StatefulWidget {
|
|
- /// Create a new refresh control for inserting into a list of slivers.
|
|
|
|
|
|
+ /// Create a refresh control for inserting into a list of slivers.
|
|
///
|
|
///
|
|
/// The [loadTriggerPullDistance] and [loadIndicatorExtent] arguments
|
|
/// The [loadTriggerPullDistance] and [loadIndicatorExtent] arguments
|
|
/// must not be null and must be >= 0.
|
|
/// must not be null and must be >= 0.
|