progress_bar 1.0.0
progress_bar: ^1.0.0 copied to clipboard
Progress bar for dart command-line apps. A port of node-progress to Dart.
progress_bar #
Progress bar for dart command-line apps. A port of node-progress to Dart.
Usage #
Basic usage:
var bar = new ProgressBar(' [:bar] :percent :etas ', total: 10);
var timer = new Timer.periodic(new Duration(seconds: 1), (Timer timer) {
bar.tick();
if (bar.complete) {
timer.cancel();
}
});

Options #
These are keys in the options you can pass to the progress bar along with
total as seen in the example above.
totaltotal number of ticks to completewidththe displayed width of the progress bar defaulting to totalcompletecompletion character defaulting to "="incompleteincomplete character defaulting to "-"clearoption to clear the bar on completion defaulting to falsecallbackoptional function to call when the progress bar completes
Tokens #
These are tokens you can use in the format of your progress bar.
:barthe progress bar itself:currentcurrent tick number:totaltotal ticks:elapsedtime elapsed in seconds:percentcompletion percentage:etaestimated completion time in seconds
Features and bugs #
Please file feature requests and bugs at the issue tracker.