CarouselDefaults

Contains the default values used by Carousel.

Properties

Link copied to clipboard

The maximum size that a carousel strategy can choose its small items to be. *

Link copied to clipboard

The minimum size that a carousel strategy can choose its small items to be. *

Functions

Link copied to clipboard
@Composable
fun multiBrowseFlingBehavior(state: CarouselState, decayAnimationSpec: DecayAnimationSpec<Float> = rememberSplineBasedDecay(), snapAnimationSpec: AnimationSpec<Float> = spring(stiffness = Spring.StiffnessMediumLow)): TargetedFlingBehavior

A TargetedFlingBehavior that flings and snaps according to the gesture velocity. snapAnimationSpec and decayAnimationSpec can be used to control the animation specs.

Link copied to clipboard
@Composable
fun noSnapFlingBehavior(): TargetedFlingBehavior

A TargetedFlingBehavior that flings according to the gesture velocity and does not snap post-fling.

Link copied to clipboard
@Composable
fun singleAdvanceFlingBehavior(state: CarouselState, snapAnimationSpec: AnimationSpec<Float> = spring(stiffness = Spring.StiffnessMediumLow)): TargetedFlingBehavior

A TargetedFlingBehavior that limits a fling to one item at a time. snapAnimationSpec can be used to control the snap animation.