Components/Spinner

Spinner

An indeterminate activity indicator driven by TickMsg. Supply any list of frames — Braille dots, a line spinner, moons, clocks — and forward ticks to advance it.

Install the package

Every component ships in the single dart_tui package.

$dart pub add dart_tui
spinner · dart_tui
Spinner demo

SpinnerModel

PropertyTypeDescription
framesList<String>Animation frames cycled on each TickMsg. Defaults to the Braille dot set.
indexintCurrent frame index.
prefixStringText rendered before the spinner glyph.
suffixStringText rendered after the spinner glyph.
stylesSpinnerStylesForeground styling for the spinner and its label.

Related