EasyStepper constructor
const
EasyStepper({
- Key? key,
- required int activeStep,
- required List<
EasyStep> steps, - Set<
int> ? reachedSteps, - int? maxReachedStep,
- bool enableStepTapping = true,
- Axis direction = Axis.horizontal,
- OnStepReached? onStepReached,
- Color? unreachedStepBackgroundColor,
- Color? unreachedStepTextColor,
- Color? unreachedStepIconColor,
- Color? unreachedStepBorderColor,
- Color? activeStepTextColor,
- Color? activeStepIconColor,
- Color? activeStepBackgroundColor,
- Color? activeStepBorderColor,
- Color? finishedStepTextColor,
- Color? finishedStepBackgroundColor,
- Color? finishedStepBorderColor,
- Color? finishedStepIconColor,
- double stepRadius = 30,
- bool steppingEnabled = true,
- bool disableScroll = false,
- bool showTitle = true,
- AlignmentGeometry alignment = Alignment.center,
- bool fitWidth = true,
- bool showScrollbar = true,
- EdgeInsetsGeometry? padding,
- bool titlesAreLargerThanSteps = false,
- double internalPadding = 8,
- Curve stepAnimationCurve = Curves.linear,
- Duration stepAnimationDuration = const Duration(seconds: 1),
- double borderThickness = 0.8,
- String? loadingAnimation,
- StepShape stepShape = StepShape.circle,
- double? stepBorderRadius,
- BorderType defaultStepBorderType = BorderType.dotted,
- BorderType? unreachedStepBorderType,
- BorderType? activeStepBorderType,
- BorderType? finishedStepBorderType,
- List<
double> dashPattern = const [3, 1], - bool showStepBorder = true,
- bool showLoadingAnimation = true,
- TextDirection textDirection = TextDirection.ltr,
- 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');