Source set: Android
public object ScrollIndicatorDefaults
Contains the default values used for ScrollIndicator.
Properties
PositionAnimationSpec
Source set: Android
public val PositionAnimationSpec: AnimationSpec<Float>
AnimationSpec used for position animation. To disable this animation, pass snap AnimationSpec instead
Functions
colors
@Composable
public fun colors(): ScrollIndicatorColors
Creates a ScrollIndicatorColors that represents the default colors used in a ScrollIndicator.
colors
@Composable
public fun colors(
indicatorColor: Color = Color.Unspecified,
trackColor: Color = Color.Unspecified,
): ScrollIndicatorColors
Creates a ScrollIndicatorColors with modified colors used in ScrollIndicator.
Parameters
| indicatorColor | The indicator color. |
| trackColor | The track color. |