Skip to content
All packages

// Package

nicesteps

Theme-aware wizard steppers for Flutter. A strip of dots and labels that fills its width, a compact progress bar for phones, tap-to-go-back and localisable text.

likes
1
pub points
150/160
downloads in 30 days
171

Platforms

  • Android
  • iOS
  • Web
  • macOS
  • Windows
  • Linux
The strip, with one step completed, one current and three to come

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: true draws every step as completed, for the success screen after a submission.
  • Themed and localisable: NiceStepperTheme is a ThemeExtension derived from your ColorScheme, and the few words the stepper writes live in NiceStepperStrings.
  • 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.

Screenshots

  • The strip in dark mode, with numbered dots
  • The compact bar at a phone's width, with a counter and a name over a progress track
  • The list of steps the compact bar opens, with a custom theme in dark mode