Composable Function

RemoteLinearProgressIndicator

Material Design linear progress indicator.

RemoteLinearProgressIndicator

Source set: Android
@Composable
public fun RemoteLinearProgressIndicator(
    progress: RemoteFloat,
    modifier: RemoteModifier = RemoteModifier,
    colors: RemoteProgressIndicatorColors = RemoteProgressIndicatorDefaults.colors(),
    strokeWidth: RemoteDp = RemoteLinearProgressIndicatorDefaults.StrokeWidthLarge,
    enabled: RemoteBoolean = true.rb,
)

Material Design linear progress indicator.

The RemoteLinearProgressIndicator displays progress as a horizontal bar, consisting of two visual components:

  • Track: The background line representing the total range of progress.
  • Indicator: A colored line that fills the track, indicating the current progress value.

The indicator also includes a small dot at the end of the progress line. This dot serves as an accessibility feature to show the range of the indicator.

For an animated progress, see:

Parameters

progress The progress of this progress indicator where 0.0 represents no progress and 1.0 represents completion. Values outside of this range are coerced into the range 0..1.
modifier Modifier to be applied to the RemoteLinearProgressIndicator.
colors RemoteProgressIndicatorColors that will be used to resolve the indicator and track colors for this progress indicator in different states.
strokeWidth The stroke width for the progress indicator. Defaults to RemoteLinearProgressIndicatorDefaults.StrokeWidthLarge.
enabled Controls the enabled state. Although this component is not clickable, it can be contained within a clickable component. When enabled is false, this component will appear visually disabled. Note that only constant values are currently supported for enabled; expressions will evaluate to true.

Content updated: