StepsIndicator class

Custom StepsIndicator to display a line with different kind of steps

Inheritance

Constructors

StepsIndicator({int selectedStep = 0, int nbSteps = 4, Color selectedStepColorOut = Colors.blue, Color selectedStepColorIn = Colors.white, Color doneStepColor = Colors.blue, Color unselectedStepColorOut = Colors.blue, Color unselectedStepColorIn = Colors.blue, Color doneLineColor = Colors.blue, Color undoneLineColor = Colors.blue, bool isHorizontal = true, double lineLength = 40, double doneLineThickness = 1, double undoneLineThickness = 1, double doneStepSize = 10, double unselectedStepSize = 10, double selectedStepSize = 14, double selectedStepBorderSize = 1, double unselectedStepBorderSize = 1, Widget? doneStepWidget, Widget? unselectedStepWidget, Widget? selectedStepWidget, List<StepsIndicatorCustomLine>? lineLengthCustomStep, bool enableLineAnimation = false, bool enableStepAnimation = false})
const

Properties

doneLineColor Color
Color for done line default = Colors.blue
final
doneLineThickness double
Line thickness for done line default = 1
final
doneStepColor Color
Background color for done step default = Colors.blue
final
doneStepSize double
Done step size default = 10
final
doneStepWidget Widget?
final
enableLineAnimation bool
Enable line animation default = false
final
enableStepAnimation bool
Enable step animation default = false
final
hashCode int
The hash code for this object.
no setterinherited
isHorizontal bool
Make it horizontal or vertical default = true
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lineLength double
Length for each line default = 40
final
lineLengthCustomStep List<StepsIndicatorCustomLine>?
final
nbSteps int
Number of total Steps
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedStep int
Selected step default = 0
final
selectedStepBorderSize double
Selected step border size default = 14
final
selectedStepColorIn Color
Background color for selected step default = Colors.white
final
selectedStepColorOut Color
Border color for selected step default = Colors.blue
final
selectedStepSize double
Selected step size default = 14
final
selectedStepWidget Widget?
final
undoneLineColor Color
Color for undone line default = Colors.blue
final
undoneLineThickness double
Line thickness for undone line default = 1
final
unselectedStepBorderSize double
Unselected step border size default = 14
final
unselectedStepColorIn Color
Background color for unselected step default = Colors.blue
final
unselectedStepColorOut Color
Border color for unselected step default = Colors.blue
final
unselectedStepSize double
Unselected step size default = 10
final
unselectedStepWidget Widget?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _StepsIndicatorState
Creates the mutable state for this widget at a given location in the tree.
override
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}) 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