fling Behavior
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
The PagerState to update.
The decay animation spec to use for decayed flings.
The animation spec to use when snapping.
Block which returns the maximum fling distance in pixels.
The amount of content padding on the end edge of the lazy list in pixels (end/bottom depending on the scrolling direction).
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
The PagerState to update.
The decay animation spec to use for decayed flings.
The animation spec to use when snapping.
The amount of content padding on the end edge of the lazy list in pixels (end/bottom depending on the scrolling direction).
Block which returns the index to snap to. The block is provided with the SnapperLayoutInfo, the index where the fling started, and the index which Snapper has determined is the correct target index. Callers can override this value to any valid index for the layout. Some common use cases include limiting the fling distance, and rounding up/down to achieve snapping to groups of items.
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
The PagerState to update.
The decay animation spec to use for decayed flings.
The animation spec to use when snapping.
The amount of content padding on the end edge of the lazy list in pixels (end/bottom depending on the scrolling direction).