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.