Skip to content
On this page

Stepper

A sequence indicator for a multi-step workflow.

Stepper in FluttyUIStepper in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

Stepper

const Stepper({
  super.key,
  required this.steps,
  this.size,
  this.direction = StepperDirection.vertical,
  this.currentStep,
  this.initialStep = 0,
  this.onStepChanged,
  this.allowStepSelection = true,
  this.activeColor,
  this.inactiveColor,
  this.activeTextColor,
  this.completedTextColor,
  this.inactiveTextColor,
  this.descriptionColor,
  this.indicatorSize,
  this.lineWidth = 2,
  this.verticalSpacing,
  this.labelSpacing,
  this.textGap,
  this.animationDuration,
});
ParameterTypeRequiredDefault
keyKey?Nonull
stepsList<StepperStep>Yes—
sizeComponentSize?Nonull
directionStepperDirectionNoStepperDirection.vertical
currentStepint?Nonull
initialStepintNo0
onStepChangedValueChanged<int>?Nonull
allowStepSelectionboolNotrue
activeColorColor?Nonull
inactiveColorColor?Nonull
activeTextColorColor?Nonull
completedTextColorColor?Nonull
inactiveTextColorColor?Nonull
descriptionColorColor?Nonull
indicatorSizedouble?Nonull
lineWidthdoubleNo2
verticalSpacingdouble?Nonull
labelSpacingdouble?Nonull
textGapdouble?Nonull
animationDurationDuration?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/navigation/stepper/stepper.dart

This reference is generated from the Stepper declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI