LevelIndicatorDefaults

object LevelIndicatorDefaults


Contains the default values used for LevelIndicator.

Summary

Constants

const Float
SweepAngle = 72.0f

The sweep angle for the curved LevelIndicator.

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

Constants

SweepAngle

Added in 1.0.0-alpha25
const val SweepAngle = 72.0f: Float

The sweep angle for the curved LevelIndicator.

Public functions

colors

Added in 1.0.0-alpha25
@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-alpha25
val StrokeWidthDp

The default stroke width for the indicator and track strokes