WOIStepper.custom constructor

const WOIStepper.custom({
  1. Key? key,
  2. StepperStyle? completedState,
  3. StepperStyle? activeState,
  4. StepperStyle? inactiveState,
  5. required int activeStateIndex,
  6. required List<String> textItemsList,
  7. Widget? activeSeparatorWidget,
  8. Widget? inactiveSeparatorWidget,
  9. EdgeInsets? itemsPadding,
  10. EdgeInsets? saperatorsPadding,
  11. EdgeInsets? backgroundPadding,
  12. BoxDecoration? backgroundDecorator,
  13. List<SuffixWidgetStepper>? suffixWidgetItemsList,
  14. EdgeInsets? itemsMargin,
  15. BoxDecoration? itemActiveDecorator,
  16. BoxDecoration? itemInactiveDecorator,
  17. BoxDecoration? itemCompletedDecorator,
  18. List<String>? subtextList,
  19. TextStyle? subtextStyle,
  20. Axis axis = Axis.horizontal,
  21. double? height,
  22. double? width,
  23. 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",
      );