Object

WavyProgressIndicatorDefaults

Contains the default values used for wavy progress indicators

Source set: Common
public object WavyProgressIndicatorDefaults

Contains the default values used for wavy progress indicators

Properties

ProgressAnimationSpec

Source set: Common
public val ProgressAnimationSpec: AnimationSpec<Float> =
        tween(
            durationMillis = MotionTokens.DurationLong2.toInt(),
            easing = MotionTokens.EasingLinearCubicBezier,
        )

A default AnimationSpec that should be used when animating between progress in a determinate progress indicator.

indicatorColor

Source set: Common
public val indicatorColor: Color

A default active indicator Color.

trackColor

Source set: Common
public val trackColor: Color

A default track Color.

linearIndicatorStroke

Source set: Common
public val linearIndicatorStroke: Stroke

A default linear progress indicator active indicator Stroke.

circularIndicatorStroke

Source set: Common
public val circularIndicatorStroke: Stroke

A default circular progress indicator active indicator Stroke.

linearTrackStroke

Source set: Common
public val linearTrackStroke: Stroke

A default linear progress indicator track Stroke.

circularTrackStroke

Source set: Common
public val circularTrackStroke: Stroke

A default circular progress indicator track Stroke.

LinearDeterminateWavelength

Source set: Common
public val LinearDeterminateWavelength: Dp = LinearProgressIndicatorTokens.ActiveWaveWavelength

A default wavelength of a determinate linear progress indicator when it's in a wavy form.

LinearIndeterminateWavelength

Source set: Common
public val LinearIndeterminateWavelength: Dp =
        LinearProgressIndicatorTokens.IndeterminateActiveWaveWavelength

A default wavelength of a linear progress indicator when it's in a wavy form.

LinearContainerHeight

Source set: Common
public val LinearContainerHeight: Dp = LinearProgressIndicatorTokens.WaveHeight

A default linear progress indicator container height.

LinearContainerWidth

Source set: Common
public val LinearContainerWidth: Dp = 240.dp

A default linear progress indicator container width.

LinearTrackStopIndicatorSize

Source set: Common
public val LinearTrackStopIndicatorSize: Dp = LinearProgressIndicatorTokens.StopSize

A default linear stop indicator size.

CircularContainerSize

Source set: Common
public val CircularContainerSize: Dp = CircularProgressIndicatorTokens.WaveSize

A default circular progress indicator container size.

CircularWavelength

Source set: Common
public val CircularWavelength: Dp = CircularProgressIndicatorTokens.ActiveWaveWavelength

A default wavelength of a circular progress indicator when it's in a wavy form.

LinearIndicatorTrackGapSize

Source set: Common
public val LinearIndicatorTrackGapSize: Dp = LinearProgressIndicatorTokens.TrackActiveSpace

A default gap size that appears in between the active indicator and the track at the linear progress indicator.

CircularIndicatorTrackGapSize

Source set: Common
public val CircularIndicatorTrackGapSize: Dp = CircularProgressIndicatorTokens.TrackActiveSpace

A default gap size that appears in between the active indicator and the track at the circular progress indicator.

indicatorAmplitude

Source set: Common
public val indicatorAmplitude: (progress: Float) -> Float = { progress ->
        // Sets the amplitude to the max on 10%, and back to zero on 95% of the progress.
        if (progress <= 0.1f || progress >= 0.95f) {
            0f
        } else {
            1f
        }
    }

A function that returns a determinate indicator's amplitude for a given progress.

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: