public object WavyProgressIndicatorDefaults
Contains the default values used for wavy progress indicators
Properties
ProgressAnimationSpec
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
public val indicatorColor: Color
A default active indicator Color.
trackColor
public val trackColor: Color
A default track Color.
linearIndicatorStroke
public val linearIndicatorStroke: Stroke
A default linear progress indicator active indicator Stroke.
circularIndicatorStroke
public val circularIndicatorStroke: Stroke
A default circular progress indicator active indicator Stroke.
linearTrackStroke
public val linearTrackStroke: Stroke
A default linear progress indicator track Stroke.
circularTrackStroke
public val circularTrackStroke: Stroke
A default circular progress indicator track Stroke.
LinearDeterminateWavelength
public val LinearDeterminateWavelength: Dp = LinearProgressIndicatorTokens.ActiveWaveWavelength
A default wavelength of a determinate linear progress indicator when it's in a wavy form.
LinearIndeterminateWavelength
public val LinearIndeterminateWavelength: Dp =
LinearProgressIndicatorTokens.IndeterminateActiveWaveWavelength
A default wavelength of a linear progress indicator when it's in a wavy form.
LinearContainerHeight
public val LinearContainerHeight: Dp = LinearProgressIndicatorTokens.WaveHeight
A default linear progress indicator container height.
LinearContainerWidth
public val LinearContainerWidth: Dp = 240.dp
A default linear progress indicator container width.
LinearTrackStopIndicatorSize
public val LinearTrackStopIndicatorSize: Dp = LinearProgressIndicatorTokens.StopSize
A default linear stop indicator size.
CircularContainerSize
public val CircularContainerSize: Dp = CircularProgressIndicatorTokens.WaveSize
A default circular progress indicator container size.
CircularWavelength
public val CircularWavelength: Dp = CircularProgressIndicatorTokens.ActiveWaveWavelength
A default wavelength of a circular progress indicator when it's in a wavy form.
LinearIndicatorTrackGapSize
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
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
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.