StepperStyle constructor

StepperStyle({
  1. Color? inActiveIconColor,
  2. Color? activeIconColor,
  3. Color? activeIconBackgroundColor,
  4. Color? inActiveIconBackgroundColor,
  5. Color? inActiveProgressBarColor,
  6. Color? activeProgressBarColor,
  7. Color? activeStatusBackgroundColor,
  8. Color? inActiveStatusBackgroundColor,
  9. Color? errorIconBackgroundColor,
  10. Color? successIconBackgroundColor,
  11. Color? errorProgressBarColor,
  12. Color? successProgressBarColor,
  13. Color? errorStatusBackgroundColor,
  14. Color? successStatusBackgroundColor,
  15. TextStyle? successStatusTextStyle,
  16. TextStyle? activeStatusTextStyle,
  17. TextStyle? inActiveStatusTextStyle,
  18. TextStyle? activeStepNameStyle,
  19. TextStyle? inActiveStepNameStyle,
  20. TextStyle? activeStepNumberStyle,
  21. TextStyle? inActiveStepNumberStyle,
  22. TextStyle? errorStatusTextStyle,
  23. Widget? successIconAssets,
  24. Widget? errorIconAssets,
  25. bool? showLastProgress,
})

Implementation

StepperStyle({
  Color? inActiveIconColor,
  Color? activeIconColor,
  Color? activeIconBackgroundColor,
  Color? inActiveIconBackgroundColor,
  Color? inActiveProgressBarColor,
  Color? activeProgressBarColor,
  Color? activeStatusBackgroundColor,
  Color? inActiveStatusBackgroundColor,
  Color? errorIconBackgroundColor,
  Color? successIconBackgroundColor,
  Color? errorProgressBarColor,
  Color? successProgressBarColor,
  Color? errorStatusBackgroundColor,
  Color? successStatusBackgroundColor,
  TextStyle? successStatusTextStyle,
  TextStyle? activeStatusTextStyle,
  TextStyle? inActiveStatusTextStyle,
  TextStyle? activeStepNameStyle,
  TextStyle? inActiveStepNameStyle,
  TextStyle? activeStepNumberStyle,
  TextStyle? inActiveStepNumberStyle,
  TextStyle? errorStatusTextStyle,
  Widget? successIconAssets,
  Widget? errorIconAssets,
  bool? showLastProgress,
})  : inActiveIconColor = inActiveIconColor ?? GSStepperColor.textColor2,
      activeIconColor = activeIconColor ?? GSStepperColor.white,
      activeIconBackgroundColor = activeIconBackgroundColor ?? GSStepperColor.blue,
      inActiveIconBackgroundColor = inActiveIconBackgroundColor ?? GSStepperColor.divider,
      inActiveProgressBarColor = inActiveProgressBarColor ?? GSStepperColor.divider,
      activeProgressBarColor = activeProgressBarColor ?? GSStepperColor.blue,
      activeStatusBackgroundColor = activeStatusBackgroundColor ?? GSStepperColor.fadeBlue,
      inActiveStatusBackgroundColor = inActiveStatusBackgroundColor ?? Colors.transparent,
      errorIconBackgroundColor = errorIconBackgroundColor ?? GSStepperColor.red,
      errorProgressBarColor = errorProgressBarColor ?? GSStepperColor.red,
      successProgressBarColor = successProgressBarColor ?? GSStepperColor.green,
      successStatusBackgroundColor = successProgressBarColor ?? GSStepperColor.fadeGreen,
      errorStatusBackgroundColor = successProgressBarColor ?? GSStepperColor.fadeRed,
      successIconBackgroundColor = successIconBackgroundColor ?? GSStepperColor.green,
      activeStatusTextStyle = activeStatusTextStyle ??
          const TextStyle(color: GSStepperColor.blue, fontWeight: FontWeight.w500, fontSize: 10.0),
      successStatusTextStyle = successStatusTextStyle ??
          const TextStyle(color: GSStepperColor.green, fontWeight: FontWeight.w500, fontSize: 12.0),
      errorStatusTextStyle = errorStatusTextStyle ??
          const TextStyle(color: GSStepperColor.red, fontWeight: FontWeight.w500, fontSize: 10.0),
      inActiveStatusTextStyle = inActiveStatusTextStyle ??
          const TextStyle(color: GSStepperColor.textColor2, fontWeight: FontWeight.w500, fontSize: 10.0),
      activeStepNameStyle = activeStepNameStyle ??
          const TextStyle(color: GSStepperColor.textColor1, fontWeight: FontWeight.w600, fontSize: 10.0),
      inActiveStepNameStyle = inActiveStepNameStyle ??
          const TextStyle(color: GSStepperColor.textColor2, fontWeight: FontWeight.w800, fontSize: 10.0),
      activeStepNumberStyle = activeStepNumberStyle ??
          const TextStyle(color: GSStepperColor.textColor2, fontWeight: FontWeight.w500, fontSize: 10.0),
      inActiveStepNumberStyle = inActiveStepNumberStyle ??
          const TextStyle(color: GSStepperColor.textColor2, fontWeight: FontWeight.w500, fontSize: 10.0),
      successIconWidget = successIconAssets ??
          const Icon(
            Icons.check,
            color: GSStepperColor.white,
            size: 16,
          ),
      errorIconWidget = errorIconAssets ??
          const Icon(
            Icons.cancel_outlined,
            color: GSStepperColor.white,
            size: 10,
          ),
      showLastProgress = showLastProgress ?? false;