Pager Defaults
Contains the default values used by HorizontalPager and VerticalPager.
Functions
Link copied to clipboard
fun flingBehavior( state: PagerState, decayAnimationSpec: DecayAnimationSpec<Float> = rememberSplineBasedDecay(), snapAnimationSpec: AnimationSpec<Float> = SnapperFlingBehaviorDefaults.SpringAnimationSpec, endContentPadding: Dp = 0.dp): FlingBehavior
Content copied to clipboard
fun flingBehavior( state: PagerState, decayAnimationSpec: DecayAnimationSpec<Float> = rememberSplineBasedDecay(), snapAnimationSpec: AnimationSpec<Float> = SnapperFlingBehaviorDefaults.SpringAnimationSpec, endContentPadding: Dp = 0.dp, snapIndex: (SnapperLayoutInfo, startIndex: Int, targetIndex: Int) -> Int): FlingBehavior
Content copied to clipboard
Content copied to clipboard
Remember the default FlingBehavior that represents the scroll curve.
Properties
Link copied to clipboard
The default implementation for the maximumFlingDistance parameter of flingBehavior which limits the fling distance to a single page.
Link copied to clipboard
val singlePageSnapIndex: (SnapperLayoutInfo, startIndex: Int, targetIndex: Int) -> Int
Content copied to clipboard
The default implementation for the snapIndex parameter of flingBehavior which limits the fling distance to a single page.