DigitStepper constructor
const
DigitStepper({
- Key? key,
- required int activeStep,
- required List<
StepsModel> steps, - required int maxStepReached,
- double lineLength = 40,
- double lineSpace = 0,
- LineType lineType = LineType.normal,
- void onStepReached()?,
- bool enableStepTapping = true,
- Axis direction = Axis.horizontal,
- Color? unreachedStepBackgroundColor,
- Color? unreachedStepTextColor,
- Color? unreachedStepIconColor,
- Color? unreachedStepBorderColor,
- Color? activeStepTextColor,
- Color? activeStepIconColor,
- Color? activeStepBackgroundColor,
- Color? activeStepBorderColor,
- Color? finishedStepTextColor,
- Color? finishedStepBackgroundColor,
- Color? finishedStepBorderColor,
- Color? finishedStepIconColor,
- Color? defaultLineColor,
- Color? unreachedLineColor,
- Color? activeLineColor,
- Color? finishedLineColor,
- double stepRadius = 12,
- bool steppingEnabled = true,
- bool disableScroll = true,
- bool showTitle = true,
- AlignmentGeometry alignment = Alignment.center,
- double? lineDotRadius,
- double lineThickness = 1,
- EdgeInsetsDirectional padding = const EdgeInsetsDirectional.symmetric(horizontal: 10, vertical: 10),
- double internalPadding = 0,
- Curve? stepReachedAnimationEffect,
- Curve? stepAnimationCurve,
- Duration stepReachedAnimationDuration = const Duration(milliseconds: 10),
- Duration? stepAnimationDuration,
- double borderThickness = 0.8,
- String? loadingAnimation,
- StepShape stepShape = StepShape.circle,
- double? stepBorderRadius,
- BorderType defaultStepBorderType = BorderType.normal,
- BorderType? unreachedStepBorderType,
- BorderType? activeStepBorderType,
- BorderType? finishedStepBorderType,
- List<
double> dashPattern = const [3, 1], - bool showStepBorder = false,
- bool showLoadingAnimation = false,
- 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,
});