What it does
nicesteps shows where someone is in a multi-step flow: which steps are done, which is current and which are still to come, at any width.
NiceStepper draws that from a list of steps and an index. It holds no state and has no buttons, so the rest of the wizard stays yours.
Features
- Two forms: a strip of dots and labels for wide layouts, and a one-line bar with a step counter and a progress track for narrow ones. By default the stepper picks by its own width.
-
Stateless: you pass
currentIndex. Previous, Next and validation stay in your wizard, with whatever state management you use. - Three states at a glance: completed, current and upcoming steps each look different.
- Icons or numbers: a step shows its icon, or its number when it has none.
- Never scrolls, never overflows: the strip shares its width between the steps, and only the current step keeps its label when space runs out.
-
Go back: with
onStepTapped, completed steps become buttons. Upcoming steps never are. -
Done:
done: truedraws every step as completed, for the success screen after a submission. -
Themed and localisable:
NiceStepperThemeis aThemeExtensionderived from yourColorScheme, and the few words the stepper writes live inNiceStepperStrings. - Accessible: the strip is announced as "Step 2 of 4, Company", and transitions are instant when the platform asks for no animations.
- Pure Flutter: no native code and no dependencies beyond the SDK.
Install
flutter pub add nicesteps
Requires Flutter 3.27 or newer.
Use it
import 'package:nicesteps/nicesteps.dart';
NiceStepper(
steps: const [
NiceStep(label: 'Account', icon: Icons.person_outline_rounded),
NiceStep(label: 'Company', icon: Icons.business_rounded),
NiceStep(label: 'Security', icon: Icons.shield_outlined, optional: true),
NiceStep(label: 'Review', icon: Icons.fact_check_outlined),
],
currentIndex: index,
onStepTapped: (i) => setState(() => index = i),
)
The stepper goes on top of your wizard. The body of each step and the Previous and Next buttons are yours.
The full API is documented on pub.dev.


