by @alexstyl
✉️ Leave your feedback

← Back to Glance AppWidget

LinearProgressIndicator

Component
in
Glance AppWidget
. Since 1.0.0

Overview

Examples

Community Notes

Video

Adds a determinate linear progress indicator view to the glance view.

@param progress of this progress indicator, where 0.0 represents no progress and 1.0 represents full progress @param modifier the modifier to apply to the progress bar @param color The color of the progress indicator. @param backgroundColor The color of the background behind the indicator, visible when the progress has not reached that area of the overall indicator yet.

Overloads

LinearProgressIndicator

@Composable
fun LinearProgressIndicator(
    /*@FloatRange(from = 0.0, to = 1.0)*/
    progress: Float,
    modifier: GlanceModifier = GlanceModifier,
    color: ColorProvider = ProgressIndicatorDefaults.IndicatorColorProvider,
    backgroundColor: ColorProvider = ProgressIndicatorDefaults.BackgroundColorProvider
)

Parameters

NameDescription
progressof this progress indicator, where 0.0 represents no progress and 1.0 represents full progress
modifierthe modifier to apply to the progress bar
colorThe color of the progress indicator.
backgroundColorThe color of the background behind the indicator, visible when the progress has not reached that area of the overall indicator yet

LinearProgressIndicator

@Composable
fun LinearProgressIndicator(
    modifier: GlanceModifier = GlanceModifier,
    color: ColorProvider = ProgressIndicatorDefaults.IndicatorColorProvider,
    backgroundColor: ColorProvider = ProgressIndicatorDefaults.BackgroundColorProvider
)

Parameters

NameDescription
modifierthe modifier to apply to the progress bar
colorThe color of the progress indicator.
backgroundColorThe color of the background behind the indicator, visible when the progress has not reached that area of the overall indicator yet
Previous ComponentLazyVerticalGrid
Next ComponentListTemplate