EasyStepper constructor

const EasyStepper({
  1. Key? key,
  2. required int activeStep,
  3. required List<EasyStep> steps,
  4. Set<int>? reachedSteps,
  5. int? maxReachedStep,
  6. bool enableStepTapping = true,
  7. Axis direction = Axis.horizontal,
  8. OnStepReached? onStepReached,
  9. Color? unreachedStepBackgroundColor,
  10. Color? unreachedStepTextColor,
  11. Color? unreachedStepIconColor,
  12. Color? unreachedStepBorderColor,
  13. Color? activeStepTextColor,
  14. Color? activeStepIconColor,
  15. Color? activeStepBackgroundColor,
  16. Color? activeStepBorderColor,
  17. Color? finishedStepTextColor,
  18. Color? finishedStepBackgroundColor,
  19. Color? finishedStepBorderColor,
  20. Color? finishedStepIconColor,
  21. double stepRadius = 30,
  22. bool steppingEnabled = true,
  23. bool disableScroll = false,
  24. bool showTitle = true,
  25. AlignmentGeometry alignment = Alignment.center,
  26. bool fitWidth = true,
  27. bool showScrollbar = true,
  28. EdgeInsetsGeometry? padding,
  29. bool titlesAreLargerThanSteps = false,
  30. double internalPadding = 8,
  31. Curve stepAnimationCurve = Curves.linear,
  32. Duration stepAnimationDuration = const Duration(seconds: 1),
  33. double borderThickness = 0.8,
  34. String? loadingAnimation,
  35. StepShape stepShape = StepShape.circle,
  36. double? stepBorderRadius,
  37. BorderType defaultStepBorderType = BorderType.dotted,
  38. BorderType? unreachedStepBorderType,
  39. BorderType? activeStepBorderType,
  40. BorderType? finishedStepBorderType,
  41. List<double> dashPattern = const [3, 1],
  42. bool showStepBorder = true,
  43. bool showLoadingAnimation = true,
  44. TextDirection textDirection = TextDirection.ltr,
  45. LineStyle? lineStyle,
})

Implementation

const EasyStepper({
  super.key,
  required this.activeStep,
  required this.steps,
  this.reachedSteps,
  this.maxReachedStep,
  this.enableStepTapping = true,
  this.direction = Axis.horizontal,
  this.onStepReached,
  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.stepRadius = 30,
  this.steppingEnabled = true,
  this.disableScroll = false,
  this.showTitle = true,
  this.alignment = Alignment.center,
  this.fitWidth = true,
  this.showScrollbar = true,
  this.padding,
  this.titlesAreLargerThanSteps = false,
  this.internalPadding = 8,
  this.stepAnimationCurve = Curves.linear,
  this.stepAnimationDuration = const Duration(seconds: 1),
  this.borderThickness = 0.8,
  this.loadingAnimation,
  this.stepShape = StepShape.circle,
  this.stepBorderRadius,
  this.defaultStepBorderType = BorderType.dotted,
  this.unreachedStepBorderType,
  this.activeStepBorderType,
  this.finishedStepBorderType,
  this.dashPattern = const [3, 1],
  this.showStepBorder = true,
  this.showLoadingAnimation = true,
  this.textDirection = TextDirection.ltr,
  this.lineStyle,
})  : assert(maxReachedStep == null || reachedSteps == null,
          'only "maxReachedStep" or "reachedSteps" allowed');