cli_spinner 1.0.4 copy "cli_spinner: ^1.0.4" to clipboard
cli_spinner: ^1.0.4 copied to clipboard

A small tool that allows to show a message with spinner to a user.

CLI Spinner #

Show your user that a longer running action did not hang.

Usage #

void main() async {
  var spinner = Spinner.type("Testing this.", SpinnerType.dotScroll);
  spinner.start();
  await Future.delayed(Duration(milliseconds: 2000));
  spinner.setSpinnerType(SpinnerType.dots);
  spinner.updateMessage('First part done!');
  await Future.delayed(Duration(milliseconds: 2000));
  spinner.stop();
}

Only one Spinner at a time can be shown currently.

2
likes
120
pub points
27%
popularity

Publisher

unverified uploader

A small tool that allows to show a message with spinner to a user.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

ansi_escapes, path

More

Packages that depend on cli_spinner