WOIStepper.custom constructor
const
WOIStepper.custom({
- Key? key,
- StepperStyle? completedState,
- StepperStyle? activeState,
- StepperStyle? inactiveState,
- required int activeStateIndex,
- required List<
String> textItemsList, - Widget? activeSeparatorWidget,
- Widget? inactiveSeparatorWidget,
- EdgeInsets? itemsPadding,
- EdgeInsets? saperatorsPadding,
- EdgeInsets? backgroundPadding,
- BoxDecoration? backgroundDecorator,
- List<
SuffixWidgetStepper> ? suffixWidgetItemsList, - EdgeInsets? itemsMargin,
- BoxDecoration? itemActiveDecorator,
- BoxDecoration? itemInactiveDecorator,
- BoxDecoration? itemCompletedDecorator,
- List<
String> ? subtextList, - TextStyle? subtextStyle,
- Axis axis = Axis.horizontal,
- double? height,
- double? width,
- EdgeInsets? textPadding,
Creates an instance of WOIStepper.
This constructor has all of the fields for the steppers giving it the most powerfull one so far but complex one as well
Using this you can create your own stepper variation with as much custumizations as possible.
Implementation
const WOIStepper.custom({
super.key,
this.completedState,
this.activeState,
this.inactiveState,
required this.activeStateIndex,
required this.textItemsList,
this.activeSeparatorWidget,
this.inactiveSeparatorWidget,
this.itemsPadding,
this.saperatorsPadding,
this.backgroundPadding,
this.backgroundDecorator,
this.suffixWidgetItemsList,
this.itemsMargin,
this.itemActiveDecorator,
this.itemInactiveDecorator,
this.itemCompletedDecorator,
this.subtextList,
this.subtextStyle,
this.axis = Axis.horizontal,
this.height,
this.width,
this.textPadding,
}) : assert(
(suffixWidgetItemsList == null) ||
textItemsList.length == suffixWidgetItemsList.length,
"\n\n\"Sufix widgets lenght is not equal to Text items\"\n\n",
);