fling Behavior
@Composable()
Content copied to clipboard
Remember the default FlingBehavior that represents the scroll curve.
Please remember to provide the correct endContentPadding if supplying your own FlingBehavior to VerticalPager or HorizontalPager. See those functions for how they calculate the value.
Parameters
state
The PagerState to update.
decayAnimationSpec
The decay animation spec to use for decayed flings.
snapAnimationSpec
The animation spec to use when snapping.
maximumFlingDistance
Block which returns the maximum fling distance in pixels.
endContentPadding
The amount of content padding on the end edge of the lazy list in pixels (end/bottom depending on the scrolling direction).