UIStepProgressWidget class

A widget that represents a step progress indicator.

The UIStepProgressWidget is used to visually represent a progress bar with discrete steps. Each step can be either active or inactive depending on the currentStep and totalSteps values. This is typically used to show progress in multi-step processes such as wizards, onboarding, or form submissions.

Example usage:

UIStepProgressWidget(totalSteps: 5, currentStep: 3);
Inheritance

Constructors

UIStepProgressWidget.new({Key? key, required int totalSteps, required int currentStep, Color activeColor = Colors.blue, Color inactiveColor = Colors.grey, double height = 10.0, double horizontalMargin = 2.0, 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.
const

Properties

activeColor Color
The color of the active (completed) steps.
final
borderRadius double
The border radius for each step in the progress bar.
final
currentStep int
The current step in the progress bar.
final
hashCode int
The hash code for this object.
no setterinherited
height double
The height of the progress bar.
final
horizontalMargin double
The horizontal margin between each step in the progress bar.
final
inactiveColor Color
The color of the inactive (uncompleted) steps.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalSteps int
The total number of steps in the progress bar.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited