NestedScrollUtil class
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