NestedScrollUtil class

Constructors

NestedScrollUtil()

Properties

bodyScrollController ScrollController?
The inner ScrollController in the body of a NestedScrollView.
getter/setter pair
bodySliverContexts List<BuildContext>
Record the BuildContext corresponding to all body slivers of NestedScrollView.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headerSliverContexts List<BuildContext>
Record the BuildContext corresponding to all header slivers of NestedScrollView.
getter/setter pair
outerScrollController ScrollController?
The outer ScrollController of a NestedScrollView.
getter/setter pair
remainingSliverContext BuildContext?
Record the BuildContext of SliverFillRemaining.
getter/setter pair
remainingSliverRenderObj RenderSliverSingleBoxAdapter?
Record the RenderObject of SliverFillRemaining.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

animateTo({required GlobalKey<State<StatefulWidget>> nestedScrollViewKey, required SliverObserverController observerController, required NestedScrollUtilPosition position, required int index, required Duration duration, required Curve curve, required BuildContext? sliverContext, bool isFixedHeight = false, double alignment = 0, EdgeInsets padding = EdgeInsets.zero, ObserverLocateIndexOffsetCallback? offset, ObserverRenderSliverType? renderSliverType}) Future
Animate to the specified index position.
calcOverlap({required GlobalKey<State<StatefulWidget>> nestedScrollViewKey, required BuildContext sliverContext}) double?
Calculate the overlap for the body sliver.
calcPrecedingScrollExtent({required GlobalKey<State<StatefulWidget>> nestedScrollViewKey, required BuildContext sliverContext}) double?
Calculate the precedingScrollExtent for sliverContext.
fetchRemainingSliverContext({required GlobalKey<State<StatefulWidget>> nestedScrollViewKey}) BuildContext?
Get SliverFillRemaining
handleOnPrepareScrollToIndex({required GlobalKey<State<StatefulWidget>> nestedScrollViewKey, required NestedScrollUtilPosition position, required ScrollController outerScrollController, Duration? duration, Curve? curve, ObserverLocateIndexOffsetCallback? offset}) ObserverOnPrepareScrollToIndex?
Handle the onPrepareScrollToIndex callback.
jumpTo({required GlobalKey<State<StatefulWidget>> nestedScrollViewKey, required SliverObserverController observerController, required NestedScrollUtilPosition position, required int index, required BuildContext? sliverContext, bool isFixedHeight = false, double alignment = 0, EdgeInsets padding = EdgeInsets.zero, ObserverLocateIndexOffsetCallback? offset, ObserverRenderSliverType? renderSliverType}) Future
Jump to the specified index position.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → dynamic
Reset all data.
switchScrollController({required SliverObserverController observerController, required NestedScrollUtilPosition position}) → dynamic
Switch the ScrollController of observerController according to the NestedScrollUtilPosition.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited