JourneyButtonStyle class abstract

Base class for defining the style and parameters of journey buttons. JourneyButtonStyles:

  • standard Standard button style with customizable properties.
  • minimal Minimal button style with icons only.
  • outlined Outlined button style.
  • contained Contained button style.
  • custom Custom button style using builder functions.

Constructors

JourneyButtonStyle()
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.
const
factory
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.
const
factory
JourneyButtonStyle.minimal({IconData backIcon, IconData nextIcon, IconData? completeIcon, double iconSize, Color? iconColor, Color? disabledIconColor})
Creates a minimal button style with icons only.
const
factory
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.
const
factory
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.
const
factory

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