MultiSegmentLinearIndicator constructor
const
MultiSegmentLinearIndicator({
- Key? key,
- required List<
LinearSegment> segments, - double? width,
- double lineHeight = 20.0,
- Color backgroundColor = const Color(0xFFE0E0E0),
- BorderRadius? borderRadius,
- bool animation = false,
- int animationDuration = 500,
- Curve animationCurve = Curves.easeInOut,
- bool showLabels = false,
- LinearChildPosition labelPosition = LinearChildPosition.center,
- TextStyle? labelStyle,
- double segmentSpacing = 0.0,
- EdgeInsets padding = EdgeInsets.zero,
Creates a multi-segment linear indicator.
Implementation
// ignore: sort_constructors_first
const MultiSegmentLinearIndicator({
super.key,
required this.segments,
this.width,
this.lineHeight = 20.0,
this.backgroundColor = const Color(0xFFE0E0E0),
this.borderRadius,
this.animation = false,
this.animationDuration = 500,
this.animationCurve = Curves.easeInOut,
this.showLabels = false,
this.labelPosition = LinearChildPosition.center,
this.labelStyle,
this.segmentSpacing = 0.0,
this.padding = EdgeInsets.zero,
});