UIStepProgressWidget constructor

const UIStepProgressWidget({
  1. Key? key,
  2. required int totalSteps,
  3. required int currentStep,
  4. Color activeColor = Colors.blue,
  5. Color inactiveColor = Colors.grey,
  6. double height = 10.0,
  7. double horizontalMargin = 2.0,
  8. double borderRadius = 5.0,
})

Creates a UIStepProgressWidget with the given totalSteps and currentStep, along with optional customization for step colors, height, margin, and border radius.

totalSteps and currentStep are required. currentStep must be less than or equal to totalSteps.

Implementation

const UIStepProgressWidget({
  super.key,
  required this.totalSteps,
  required this.currentStep,
  this.activeColor = Colors.blue,
  this.inactiveColor = Colors.grey,
  this.height = 10.0,
  this.horizontalMargin = 2.0,
  this.borderRadius = 5.0,
});