LinearProgressIndicator
Source set: Android
@Composable
public fun LinearProgressIndicator(
progress: () -> Float,
modifier: Modifier = Modifier,
color: Color = LinearProgressIndicatorDefaults.color,
trackColor: Color = Color.Unspecified,
gapSize: Dp = LinearProgressIndicatorDefaults.GapSize,
)
Parameters
| progress | the progress of this indicator, where 0.0 represents no progress and 1.0 represents full progress. Values outside of this range are coerced into the range |
| modifier | the Modifier to be applied to this indicator |
| color | the Color of the progress line |
| trackColor | the Color of the track that the progress line hasn't reached yet. If Color.Unspecified, uses a less prominent shade of the content color provided by the nearest surface. |
| gapSize | the visible gap between the progress line and the track |
LinearProgressIndicator
Source set: Android
@Composable
public fun LinearProgressIndicator(
modifier: Modifier = Modifier,
color: Color = LinearProgressIndicatorDefaults.color,
trackColor: Color = Color.Unspecified,
gapSize: Dp = LinearProgressIndicatorDefaults.GapSize,
)
Parameters
| modifier | the Modifier to be applied to this indicator |
| color | the Color of the moving progress lines |
| trackColor | the Color of the track behind the progress lines. If Color.Unspecified, uses a less prominent shade of the content color provided by the nearest surface. |
| gapSize | the visible gap between the progress lines and the track |