ProgressIndicatorSegment

constructor(weight: Float, indicatorColor: Color, trackColor: Color? = null, 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.

indicatorColor

The color 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.


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

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.