DigitStepper constructor

const DigitStepper({
  1. Key? key,
  2. required int activeStep,
  3. required List<StepsModel> steps,
  4. required int maxStepReached,
  5. double lineLength = 40,
  6. double lineSpace = 0,
  7. LineType lineType = LineType.normal,
  8. void onStepReached(
    1. int
    )?,
  9. bool enableStepTapping = true,
  10. Axis direction = Axis.horizontal,
  11. Color? unreachedStepBackgroundColor,
  12. Color? unreachedStepTextColor,
  13. Color? unreachedStepIconColor,
  14. Color? unreachedStepBorderColor,
  15. Color? activeStepTextColor,
  16. Color? activeStepIconColor,
  17. Color? activeStepBackgroundColor,
  18. Color? activeStepBorderColor,
  19. Color? finishedStepTextColor,
  20. Color? finishedStepBackgroundColor,
  21. Color? finishedStepBorderColor,
  22. Color? finishedStepIconColor,
  23. Color? defaultLineColor,
  24. Color? unreachedLineColor,
  25. Color? activeLineColor,
  26. Color? finishedLineColor,
  27. double stepRadius = 12,
  28. bool steppingEnabled = true,
  29. bool disableScroll = true,
  30. bool showTitle = true,
  31. AlignmentGeometry alignment = Alignment.center,
  32. double? lineDotRadius,
  33. double lineThickness = 1,
  34. EdgeInsetsDirectional padding = const EdgeInsetsDirectional.symmetric(horizontal: 10, vertical: 10),
  35. double internalPadding = 0,
  36. Curve? stepReachedAnimationEffect,
  37. Curve? stepAnimationCurve,
  38. Duration stepReachedAnimationDuration = const Duration(milliseconds: 10),
  39. Duration? stepAnimationDuration,
  40. double borderThickness = 0.8,
  41. String? loadingAnimation,
  42. StepShape stepShape = StepShape.circle,
  43. double? stepBorderRadius,
  44. BorderType defaultStepBorderType = BorderType.normal,
  45. BorderType? unreachedStepBorderType,
  46. BorderType? activeStepBorderType,
  47. BorderType? finishedStepBorderType,
  48. List<double> dashPattern = const [3, 1],
  49. bool showStepBorder = false,
  50. bool showLoadingAnimation = false,
  51. TextDirection textDirection = TextDirection.ltr,
})

Implementation

const DigitStepper({
  super.key,
  required this.activeStep,
  required this.steps,
  required this.maxStepReached,
  this.lineLength = 40,
  this.lineSpace = 0,
  this.lineType = LineType.normal,
  this.onStepReached,
  this.enableStepTapping = true,
  this.direction = Axis.horizontal,
  this.unreachedStepBackgroundColor,
  this.unreachedStepTextColor,
  this.unreachedStepIconColor,
  this.unreachedStepBorderColor,
  this.activeStepTextColor,
  this.activeStepIconColor,
  this.activeStepBackgroundColor,
  this.activeStepBorderColor,
  this.finishedStepTextColor,
  this.finishedStepBackgroundColor,
  this.finishedStepBorderColor,
  this.finishedStepIconColor,
  this.defaultLineColor,
  this.unreachedLineColor,
  this.activeLineColor,
  this.finishedLineColor,
  this.stepRadius = 12,
  this.steppingEnabled = true,
  this.disableScroll = true,
  this.showTitle = true,
  this.alignment = Alignment.center,
  this.lineDotRadius,
  this.lineThickness = 1,
  this.padding =
      const EdgeInsetsDirectional.symmetric(horizontal: 10, vertical: 10),
  this.internalPadding = 0,
  this.stepReachedAnimationEffect,
  this.stepAnimationCurve,
  this.stepReachedAnimationDuration = const Duration(milliseconds: 10),
  this.stepAnimationDuration,
  this.borderThickness = 0.8,
  this.loadingAnimation,
  this.stepShape = StepShape.circle,
  this.stepBorderRadius,
  this.defaultStepBorderType = BorderType.normal,
  this.unreachedStepBorderType,
  this.activeStepBorderType,
  this.finishedStepBorderType,
  this.dashPattern = const [3, 1],
  this.showStepBorder = false,
  this.showLoadingAnimation = false,
  this.textDirection = TextDirection.ltr,
});