0 purchases
cli spinner
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();
}
copied to clipboard
Only one Spinner at a time can be shown currently.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.