cli_spinner 1.0.2 cli_spinner: ^1.0.2 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.