FirstRunConfig class
Visual and behavioral configuration for FirstRunWrapper.
Constructors
- FirstRunConfig({Color? primaryColor, Color? backgroundColor, Color? surfaceColor, Color? onSurfaceColor, Color? progressColor, Color? progressBackgroundColor, Color? successColor, Color? warningColor, Color? errorColor, double cardBorderRadius = 20, TextStyle? titleStyle, TextStyle? descriptionStyle, FirstRunButtonBuilder? buttonBuilder, FirstRunButtonBuilder? nextButtonBuilder, FirstRunButtonBuilder? backButtonBuilder, FirstRunButtonBuilder? skipButtonBuilder, AnimatedSwitcherTransitionBuilder? transitionBuilder, FirstRunLayout layout = FirstRunLayout.centered, EdgeInsetsGeometry padding = const EdgeInsets.all(24)})
-
Creates a first-run UI configuration.
const
Properties
- backButtonBuilder → FirstRunButtonBuilder?
-
Builder override for the back button.
final
- backgroundColor → Color?
-
Flow background color.
final
-
Shared builder used for all navigation buttons.
final
- cardBorderRadius → double
-
Border radius used by default professional cards.
final
- descriptionStyle → TextStyle?
-
Optional text style for step descriptions.
final
- errorColor → Color?
-
Semantic error color.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- layout → FirstRunLayout
-
Layout mode for the step content.
final
- nextButtonBuilder → FirstRunButtonBuilder?
-
Builder override for the next/finish button.
final
- onSurfaceColor → Color?
-
Foreground color on top of surfaceColor.
final
- padding → EdgeInsetsGeometry
-
Outer padding applied around the flow.
final
- primaryColor → Color?
-
Primary accent color used by default next/finish button.
final
- progressBackgroundColor → Color?
-
Background color for progress bars.
final
- progressColor → Color?
-
Active color for progress bars and chips.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skipButtonBuilder → FirstRunButtonBuilder?
-
Builder override for the skip button.
final
- successColor → Color?
-
Semantic success color (for granted permission states).
final
- surfaceColor → Color?
-
Card/surface color used by default step containers.
final
- titleStyle → TextStyle?
-
Optional text style for step titles.
final
- transitionBuilder → AnimatedSwitcherTransitionBuilder?
-
Transition for switching between steps.
final
- warningColor → Color?
-
Semantic warning color.
final
Methods
-
buildBackButton(
BuildContext context, String label, VoidCallback onPressed) → Widget - Builds the back button using custom or default styling.
-
buildNextButton(
BuildContext context, String label, VoidCallback onPressed) → Widget - Builds the next/finish button using custom or default styling.
-
buildSkipButton(
BuildContext context, String label, VoidCallback onPressed) → Widget - Builds the skip button using custom or default styling.
-
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