ProgressBar

fun ProgressBar(value: Float, modifier: Modifier = Modifier, labelText: String? = null, helperText: String? = null, indented: Boolean = false, inlined: Boolean = false, state: ProgressBarState = ProgressBarState.Active, size: ProgressBarSize = ProgressBarSize.Big)

Progress Bar | Determinate

A progress bar provides feedback about the duration and progression of a process, such as a download, file transfer, or installation, to indicate how long a user will be waiting.

Determinate progress bars are used when the loading progress can be tracked and translated into a bar indicator which fills the track from 0% to 100% and never decreases in value or resets.

(From Progress bar documentation)

Parameters

value

The progress value, between 0 and 1.

modifier

The modifier to apply to this composable.

labelText

The text label on top of the progress bar.

helperText

The helper text below the progress bar.

indented

Whether to indent the label and helper texts.

inlined

When true, sets the label text inlined with the progress bar. In this case the helper text is not displayed.

state

The state of the progress bar.

size

The size type of the progress bar.