ProgressStepper constructor

ProgressStepper({
  1. required double width,
  2. double height = 10,
  3. double padding = 2,
  4. int stepCount = 5,
  5. int currentStep = 0,
  6. Color color = const Color(0xFFCECECF),
  7. Color progressColor = const Color(0xFFFBB040),
  8. Color borderColor = const Color(0x00FFFFFF),
  9. double borderWidth = 0.0,
  10. bool bluntHead = false,
  11. bool bluntTail = false,
  12. ProgressStepperBuilder? builder,
  13. List<String>? labels,
  14. TextStyle? defaultTextStyle,
  15. TextStyle? selectedTextStyle,
  16. ProgressStepperOnClick? onClick,
  17. 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();
}