Object

ScrollIndicatorDefaults

Contains the default values used for ScrollIndicator.

Source set: Android
public object ScrollIndicatorDefaults

Contains the default values used for ScrollIndicator.

Properties

PositionAnimationSpec

Source set: Android
public val PositionAnimationSpec: AnimationSpec<Float> =
        tween(durationMillis = 500, easing = CubicBezierEasing(0f, 0f, 0f, 1f))

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

Functions

colors

Source set: Android
@Composable
    public fun colors(): ScrollIndicatorColors

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

colors

Source set: Android
@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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: