ProgressIndicatorDefaults


object ProgressIndicatorDefaults


Contains defaults for Progress Indicators.

Summary

Public functions

ProgressIndicatorColors

Creates a ProgressIndicatorColors that represents the default arc colors used in a CircularProgressIndicator.

ProgressIndicatorColors
@Composable
colors(indicatorBrush: Brush?, trackBrush: Brush?)

Creates a ProgressIndicatorColors with modified brushes used to draw arcs in a CircularProgressIndicator.

ProgressIndicatorColors
@Composable
colors(indicatorColor: Color, trackColor: Color)

Creates a ProgressIndicatorColors with modified colors used in a CircularProgressIndicator.

Dp
gapSize(strokeWidth: Dp)

Returns recommended size of the gap based on strokeWidth.

Public properties

Dp

The default stroke width for a circular progress indicator.

Dp

Padding used for displaying CircularProgressIndicator full screen.

Float

The default angle used for the start of the progress indicator arc.

Dp

The recommended stroke width when used for default and large size circular progress indicators.

Public functions

colors

Added in 1.0.0-alpha23
@Composable
fun colors(): ProgressIndicatorColors

Creates a ProgressIndicatorColors that represents the default arc colors used in a CircularProgressIndicator.

colors

Added in 1.0.0-alpha23
@Composable
fun colors(indicatorBrush: Brush? = null, trackBrush: Brush? = null): ProgressIndicatorColors

Creates a ProgressIndicatorColors with modified brushes used to draw arcs in a CircularProgressIndicator.

Parameters
indicatorBrush: Brush? = null

The brush used to draw indicator arc.

trackBrush: Brush? = null

The brush used to draw track arc.

colors

@Composable
fun colors(
    indicatorColor: Color = Color.Unspecified,
    trackColor: Color = Color.Unspecified
): ProgressIndicatorColors

Creates a ProgressIndicatorColors with modified colors used in a CircularProgressIndicator.

Parameters
indicatorColor: Color = Color.Unspecified

The indicator arc color.

trackColor: Color = Color.Unspecified

The track arc color.

gapSize

fun gapSize(strokeWidth: Dp): Dp

Returns recommended size of the gap based on strokeWidth.

The absolute value can be customized with gapSize parameter on CircularProgressIndicator.

Public properties

ButtonCircularIndicatorStrokeWidth

Added in 1.0.0-alpha23
val ButtonCircularIndicatorStrokeWidthDp

The default stroke width for a circular progress indicator. For example, you can apply this value when drawn around an IconButton with size IconButtonDefaults.DefaultButtonSize.

This can be customized with strokeWidth parameter on CircularProgressIndicator.

FullScreenPadding

Added in 1.0.0-alpha23
val FullScreenPaddingDp

Padding used for displaying CircularProgressIndicator full screen.

StartAngle

Added in 1.0.0-alpha23
val StartAngleFloat

The default angle used for the start of the progress indicator arc.

This can be customized with startAngle parameter on CircularProgressIndicator.

StrokeWidth

Added in 1.0.0-alpha23
val StrokeWidthDp

The recommended stroke width when used for default and large size circular progress indicators.

This can be customized with strokeWidth parameter on CircularProgressIndicator.