LevelIndicatorDefaults

object LevelIndicatorDefaults


Contains the default values used for LevelIndicator.

Summary

Public functions

LevelIndicatorColors

Creates a LevelIndicatorColors that represents the default colors used in a LevelIndicator.

LevelIndicatorColors
@Composable
colors(
    indicatorColor: Color,
    trackColor: Color,
    disabledIndicatorColor: Color,
    disabledTrackColor: Color
)

Creates a LevelIndicatorColors with modified colors used in LevelIndicator.

Public properties

Dp

The default stroke width for the indicator and track strokes

Float

The sweep angle for the curved LevelIndicator, measured up to the centers of the stroke caps.

Public functions

colors

Added in 1.0.0-alpha34
@Composable
fun colors(): LevelIndicatorColors

Creates a LevelIndicatorColors that represents the default colors used in a LevelIndicator.

colors

@Composable
fun colors(
    indicatorColor: Color = Color.Unspecified,
    trackColor: Color = Color.Unspecified,
    disabledIndicatorColor: Color = Color.Unspecified,
    disabledTrackColor: Color = Color.Unspecified
): LevelIndicatorColors

Creates a LevelIndicatorColors with modified colors used in LevelIndicator.

Parameters
indicatorColor: Color = Color.Unspecified

The indicator color.

trackColor: Color = Color.Unspecified

The track color.

disabledIndicatorColor: Color = Color.Unspecified

The disabled indicator color.

disabledTrackColor: Color = Color.Unspecified

The disabled track color.

Public properties

StrokeWidth

Added in 1.0.0-alpha34
val StrokeWidthDp

The default stroke width for the indicator and track strokes

SweepAngle

Added in 1.0.0-alpha34
val SweepAngleFloat

The sweep angle for the curved LevelIndicator, measured up to the centers of the stroke caps. The default value of 72 degrees equates to 20% of the circumference, i.e. 360/5.