UIStepProgressWidget constructor
const
UIStepProgressWidget({})
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,
});