EJStepper class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- EJStepper
Constructors
-
EJStepper({Key? key, required List<
EJStep> steps, ScrollPhysics? scrollPhysics, ValueChanged<int> ? onStepTapped, ValueChanged<int> ? onStepNext, ValueChanged<int> ? onStepBack, VoidCallback? onLastStepConfirmTap, int? currentStep, Widget backButtonBuilder(VoidCallback onBackPressed, Widget child, int index)?, Widget nextButtonBuilder(VoidCallback onNextPressed, Widget child, int index)?, Color? leadingActiveColor, Color? leadingInActiveColor, Color? leadingDisableColor, Color? leadingErrorColor, Color? leadingCompleteColor, EdgeInsets stepsMargin = _stepsMargin}) -
const
Properties
- backButtonBuilder → (Widget Function(VoidCallback onBackPressed, Widget child, int index)?)
-
The callback for creating custom back button.
final
- currentStep → int?
-
The index into steps of the current step whose content is displayed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leadingActiveColor → Color?
-
Color of leading when step's state is EJStepState.enable and stepper is
in this step.
final
- leadingCompleteColor → Color?
-
Color of leading when step's state is EJStepState.complete.
final
- leadingDisableColor → Color?
-
Color of leading when step's state is EJStepState.disable.
final
- leadingErrorColor → Color?
-
Color of leading when step's state is EJStepState.error.
final
- leadingInActiveColor → Color?
-
Color of leading when step's state is EJStepState.enable and stepper is not
in this step.
final
- nextButtonBuilder → (Widget Function(VoidCallback onNextPressed, Widget child, int index)?)
-
The callback for creating custom next button.
final
- onLastStepConfirmTap → VoidCallback?
-
The callback called when the 'confirm' button is tapped.
'confirm' button only displayed in last step instead of 'next' button.
final
-
onStepBack
→ ValueChanged<
int> ? -
The callback called when the 'back' button is tapped, with current step index
passed as an argument.
final
-
onStepNext
→ ValueChanged<
int> ? -
The callback called when the 'next' button is tapped, with current step index
passed as an argument.
final
-
onStepTapped
→ ValueChanged<
int> ? -
The callback called when a step is tapped, with its index passed as
an argument.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollPhysics → ScrollPhysics?
-
How the stepper's scroll view should respond to user input.
final
-
steps
→ List<
EJStep> -
The steps of the stepper whose titles and subtitles always get shown.
final
- stepsMargin → EdgeInsets
-
Margin of each step.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _EJStepperState -
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