JourneyButtonStyle class abstract
Base class for defining the style and parameters of journey buttons. JourneyButtonStyles:
Constructors
- JourneyButtonStyle.new()
-
const
- JourneyButtonStyle.contained({IconData backIcon, IconData nextIcon, IconData? completeIcon, String backText, String nextText, String completeText, TextStyle? backTextStyle, TextStyle? nextTextStyle, TextStyle? completeTextStyle, Color? backColor, Color? nextColor, Color? completeColor, BorderRadius borderRadius, EdgeInsetsGeometry padding})
-
Creates a contained button style.
constfactory
- JourneyButtonStyle.custom({required Widget backButtonBuilder(BuildContext context, VoidCallback? onPressed), required Widget nextButtonBuilder(BuildContext context, VoidCallback? onPressed, bool isLastStep)})
-
Creates a custom button style using builder functions.
constfactory
- JourneyButtonStyle.minimal({IconData backIcon, IconData nextIcon, IconData? completeIcon, double iconSize, Color? iconColor, Color? disabledIconColor})
-
Creates a minimal button style with icons only.
constfactory
- JourneyButtonStyle.outlined({IconData backIcon, IconData nextIcon, IconData? completeIcon, String backText, String nextText, String completeText, TextStyle? backTextStyle, TextStyle? nextTextStyle, TextStyle? completeTextStyle, Color borderColor, double borderWidth, BorderRadius borderRadius, EdgeInsetsGeometry padding})
-
Creates an outlined button style.
constfactory
- JourneyButtonStyle.standard({IconData backIcon, IconData nextIcon, IconData? completeIcon, String backText, String nextText, String completeText, TextStyle? backTextStyle, TextStyle? nextTextStyle, TextStyle? completeTextStyle, bool showText, double iconSize, EdgeInsetsGeometry padding})
-
Creates a standard button style with customizable properties.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildBackButton(
BuildContext context, VoidCallback? onPressed) → Widget - Builds the back button widget.
-
buildNextButton(
BuildContext context, VoidCallback? onPressed, bool isLastStep) → Widget - Builds the next button widget.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited