JourneyProgressStyle class abstract
Base class for defining the style and parameters of a journey progress indicator. JourneyProgressStyles:
- linear Linear progress bar style.
- dots Dots-based progress indicator style.
- numbered Numbered step progress indicator style.
- segments Segmented progress bar style.
- circular Circular progress indicator style.
- timeline Timeline-style progress indicator.
- custom Custom progress indicator using a builder function.
Constructors
- JourneyProgressStyle.new()
-
const
- JourneyProgressStyle.circular({Color activeColor, Color inactiveColor, Color? textColor, double? size, double? thickness, bool showPercentage})
-
Creates a circular progress indicator style.
constfactory
- JourneyProgressStyle.custom({required Widget builder(BuildContext context, int currentStep, int totalSteps, double percentage)})
-
Creates a custom progress indicator using a builder function.
constfactory
- JourneyProgressStyle.dots({Color activeColor, Color inactiveColor, double? dotSize, double? spacing})
-
Creates a dots-based progress indicator style.
constfactory
- JourneyProgressStyle.linear({Color activeColor, Color inactiveColor, double? thickness})
-
Creates a standard linear progress bar style.
constfactory
- JourneyProgressStyle.numbered({Color activeColor, Color inactiveColor, Color? textColor, double? circleSize, double? spacing})
-
Creates a numbered step progress indicator style.
constfactory
- JourneyProgressStyle.segments({Color activeColor, Color inactiveColor, double? height, double? spacing})
-
Creates a segmented progress bar style.
constfactory
- JourneyProgressStyle.timeline({Color activeColor, Color inactiveColor, double? lineThickness, double? dotSize, bool showLabels})
-
Creates a timeline-style progress indicator.
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
-
build(
BuildContext context, int currentStep, int totalSteps) → Widget - Builds the progress indicator 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