ProgressIndicatorSegment

data class ProgressIndicatorSegment(val weight: Float, val indicatorBrush: Brush, val trackColor: Color? = null, val inProgressTrackColor: Color? = null)

Represents a segment of the track in a SegmentedProgressIndicator.

Parameters

weight

The proportion of the overall progress indicator that this segment should take up, as a proportion of the sum of the weights of all the other segments.

indicatorBrush

The color brush of the indicator bar.

trackColor

The color of the background progress track. This is optional and if not specified will default to the trackColor of the overall SegmentedProgressIndicator.

inProgressTrackColor

The color of the background progress track when this segment is in progress. This is optional, and if specified will take precedence to the trackColor of the segment or the overall SegmentedProgressIndicator, when the segment is in progress.

Constructors

Link copied to clipboard
constructor(weight: Float, indicatorColor: Color, trackColor: Color? = null, inProgressTrackColor: Color? = null)

Represents a segment of the track in a SegmentedProgressIndicator.

constructor(weight: Float, indicatorBrush: Brush, trackColor: Color? = null, inProgressTrackColor: Color? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val trackColor: Color? = null
Link copied to clipboard