ScrollIndicatorDefaults

object ScrollIndicatorDefaults


Contains the default values used for ScrollIndicator.

Summary

Public functions

ScrollIndicatorColors

Creates a ScrollIndicatorColors that represents the default colors used in a ScrollIndicator.

ScrollIndicatorColors
@Composable
colors(indicatorColor: Color, trackColor: Color)

Creates a ScrollIndicatorColors with modified colors used in ScrollIndicator.

Public properties

AnimationSpec<Float>

AnimationSpec used for position animation.

Public functions

colors

Added in 1.0.0-alpha33
@Composable
fun colors(): ScrollIndicatorColors

Creates a ScrollIndicatorColors that represents the default colors used in a ScrollIndicator.

colors

@Composable
fun colors(
    indicatorColor: Color = Color.Unspecified,
    trackColor: Color = Color.Unspecified
): ScrollIndicatorColors

Creates a ScrollIndicatorColors with modified colors used in ScrollIndicator.

Parameters
indicatorColor: Color = Color.Unspecified

The indicator color.

trackColor: Color = Color.Unspecified

The track color.

Public properties

PositionAnimationSpec

Added in 1.0.0-alpha33
val PositionAnimationSpecAnimationSpec<Float>

AnimationSpec used for position animation. To disable this animation, pass snap AnimationSpec instead