nicesteps 1.0.1
nicesteps: ^1.0.1 copied to clipboard
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.
1.0.1 #
- Screenshots of the strip, the compact bar and the list of steps it opens, in the README and on the package's pub.dev page. No change to the code.
1.0.0 #
First stable release.
NiceStepper: where the reader is in a multi-step flow, from a list ofNiceSteps (label, optional icon, optional flag) and the index the flow is at. Stateless and without buttons: Previous and Next are the host's. A completed step is tappable whenonStepTappedis given;donedraws every step completed, the last one included, with nothing tappable.- Two forms, picked by
layout: the strip (NiceStepStrip), one cell per step with its dot, a connector to the next and its label, which fills the width it is given and never scrolls; and the compact bar (NiceStepBar), a "STEP 2 OF 5" counter, the current step's name and a progress track, which opens the list of steps (NiceStepsSheet) as a bottom sheet.NiceStepperLayout.autotakes the bar belowcompactBreakpoint(560 px), or when the dots of a long flow would not fit the strip. - Dots in three looks (completed, current, upcoming) with a check, the step's icon or its number; connectors lit in full after a completed step and in part after the current one. Narrow cells drop every label but the current one and keep the others as tooltips.
NiceStepperThemederived from the appColorSchemeandTextTheme, dark-mode aware, registrable as aThemeExtension, scoped withNiceStepperThemeScopeor passed to one stepper: colours, text styles, the card's radius, edge and shadow, dot and track sizes, the animation duration.NiceStepperStrings: the counter, the eyebrow, the list's title, the "optional" tag and the screen-reader labels in one object, English by default, scoped withNiceStepperStringsScopeor passed to one stepper. The list of steps keeps the theme and the strings of the stepper that opened it.- Accessible: the strip is announced as "Step 2 of 5, Company" with one node per step, a completed step as the button "Go back to Company", the bar as a single button. Transitions are instant when the platform asks for no animations.
- The parts are exported for layouts the stepper does not cover:
NiceStepCell,NiceStepDot,NiceStepConnector,NiceStepperCard.
