ProgressStepper constructor
ProgressStepper({
- required double width,
- double height = 10,
- double padding = 2,
- int stepCount = 5,
- int currentStep = 0,
- Color color = const Color(0xFFCECECF),
- Color progressColor = const Color(0xFFFBB040),
- Color borderColor = const Color(0x00FFFFFF),
- double borderWidth = 0.0,
- bool bluntHead = false,
- bool bluntTail = false,
- ProgressStepperBuilder? builder,
- List<
String> ? labels, - TextStyle? defaultTextStyle,
- TextStyle? selectedTextStyle,
- ProgressStepperOnClick? onClick,
- Key? key,
Implementation
ProgressStepper({
required this.width,
this.height = 10,
this.padding = 2,
this.stepCount = 5,
this.currentStep = 0,
this.color = const Color(0xFFCECECF),
this.progressColor = const Color(0xFFFBB040),
this.borderColor = const Color(0x00FFFFFF),
this.borderWidth = 0.0,
this.bluntHead = false,
this.bluntTail = false,
this.builder,
this.labels,
this.defaultTextStyle,
this.selectedTextStyle,
this.onClick,
super.key,
}) : assert(padding >= 0),
assert(labels == null || (labels.length == stepCount)) {
_calculatedPadding = _calculatePadding();
_calculatedStepWidth = _getStepWidth();
}