setStatusConfiguration method

dynamic setStatusConfiguration()

Implementation

setStatusConfiguration() {
  switch (status) {
    case GSStepStatusEnum.active:
      text = data.activeStatusName ?? '';
      textStyle = style.activeStatusTextStyle;
      decoration = BoxDecoration(
        color: style.activeStatusBackgroundColor,
        borderRadius: SmoothBorderRadius(
          cornerRadius: 15.0,
          cornerSmoothing: 1,
        ),
        border: Border.all(
          width: 0.5,
          color: style.activeStatusBackgroundColor,
        ),
      );

      break;
    case GSStepStatusEnum.inActive:
      text = data.inActiveStatusName ?? '';
      textStyle = style.inActiveStatusTextStyle;
      decoration = BoxDecoration(
          color: style.inActiveStatusBackgroundColor,
          borderRadius: SmoothBorderRadius(
            cornerRadius: 15.0,
            cornerSmoothing: 1,
          ),
          border: Border.all(width: 0.5, color: GSStepperColor.textColor2));
      break;
    case GSStepStatusEnum.success:
      text = data.successStatusName ?? '';
      textStyle = style.successStatusTextStyle;
      decoration = BoxDecoration(
        color: style.successStatusBackgroundColor,
        borderRadius: SmoothBorderRadius(
          cornerRadius: 15.0,
          cornerSmoothing: 1,
        ),
        border: Border.all(
          width: 0.5,
          color: style.successStatusBackgroundColor,
        ),
      );
      break;
    case GSStepStatusEnum.error:
      text = data.errorStatusName ?? '';
      textStyle = style.errorStatusTextStyle;
      decoration = BoxDecoration(
        color: style.errorStatusBackgroundColor,
        borderRadius: SmoothBorderRadius(
          cornerRadius: 15.0,
          cornerSmoothing: 1,
        ),
        border: Border.all(
          width: 0.5,
          color: style.errorStatusBackgroundColor,
        ),
      );
      break;
  }
}