console_bars 1.1.0 console_bars: ^1.1.0 copied to clipboard
A package for creating a customizable progress bar in console easily.
example/console_bars_example.dart
import 'package:console_bars/console_bars.dart';
void main(List<String> args) async {
// A bar that looks like
//
// Loading : ████████████████████████████████████████.................... 673/1000 67.3% [ 0:00:13.28 / 0:00:06.45 ]
//
final p = FillingBar(
desc: "Loading", total: 1000, time: true, percentage: true, scale: 0.2);
for (var i = 0; i < 1000; i++) {
p.increment();
await Future.delayed(Duration(milliseconds: 10000));
}
print("\nDone");
}