Jenga Linear Progress
fun JengaLinearProgress(progress: Float, modifier: Modifier = Modifier, tone: JengaProgressTone = JengaProgressTone.Default, colors: JengaProgressColors = JengaProgressDefaults.colors(tone), trackHeight: Dp = JengaProgressDefaults.trackHeight(), shape: Shape = JengaProgressDefaults.shape, animationSpec: AnimationSpec<Float> = JengaProgressDefaults.animationSpec)(source)
A determinate linear progress bar. Changes to progress animate.
Parameters
progress
the progress in 0f..1f (coerced into range).
modifier
the Modifier for this bar.
tone
the bar tone; see JengaProgressTone.
colors
the color set; defaults to JengaProgressDefaults.colors for tone.
track Height
the bar height; defaults to the theme's JengaProgressStyle.trackHeight, else JengaProgressDefaults.TrackHeight.
shape
the track and indicator shape.
animation Spec
how the indicator animates to a new progress.
Samples
JengaLinearProgress(
progress = 0.6f,
)Content copied to clipboard