Object

ProgressIndicatorDefaults

Contains defaults for Progress Indicators.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public object ProgressIndicatorDefaults

Contains defaults for Progress Indicators.

Functions

colors

@Composable
public fun colors(): ProgressIndicatorColors

Creates a ProgressIndicatorColors with the default colors.


colors

@Composable
public fun colors(
    indicatorColor: Color = Color.Unspecified,
    trackColor: Color = Color.Unspecified,
    overflowTrackColor: Color = Color.Unspecified,
    disabledIndicatorColor: Color = Color.Unspecified,
    disabledTrackColor: Color = Color.Unspecified,
    disabledOverflowTrackColor: Color = Color.Unspecified,
): ProgressIndicatorColors

Creates a ProgressIndicatorColors with modified colors.

Parameters

indicatorColor The indicator color.
trackColor The track color.
overflowTrackColor The overflow track color.
disabledIndicatorColor The disabled indicator color.
disabledTrackColor The disabled track color.
disabledOverflowTrackColor The disabled overflow track color.

colors

@Composable
public fun colors(
    indicatorBrush: Brush? = null,
    trackBrush: Brush? = null,
    overflowTrackBrush: Brush? = null,
    disabledIndicatorBrush: Brush? = null,
    disabledTrackBrush: Brush? = null,
    disabledOverflowTrackBrush: Brush? = null,
): ProgressIndicatorColors

Creates a ProgressIndicatorColors with modified brushes.

Parameters

indicatorBrush Brush used to draw indicator.
trackBrush Brush used to draw track.
overflowTrackBrush Brush used to draw track for progress overflow.
disabledIndicatorBrush Brush used to draw the indicator if the progress is disabled.
disabledTrackBrush Brush used to draw the track if the progress is disabled.
disabledOverflowTrackBrush Brush used to draw the overflow track if the progress is disabled.