v1.3.0console_bars
A package for creating a customizable progress bar in console easily.
33Likes 10.6K30-day downloads160Pub points
AndroidiOSmacOSWindowsLinux
A dart library to create Progress Bars in console.
English project snapshot. Visit GitHub for the latest content.
A package for creating an awesome progress bar in the terminal. Handy while developing a CLI or a desktop utility in dart.
Options:
total : Total number of stepsdesc : Simple text shown before the bar (optional)space : Character denoting empty space (default : '.')fill : Character denoting filled space (default : '█')time : Toggle timing mode (default : false)percentage : Toggle percentage display (default : false)scale : Scale of the bar relative to width (between: 0 and 1, default: 0.5, Irrelavant if width is specified)width : Width of the bar (If not specified, it will be automatically calculated using the terminal width and scale)Code:
final p = FillingBar(desc: "Loading", total: 1000, time: true, percentage:true);
for (var i = 0; i < 1000; i++) {
p.increment();
sleep(Duration(milliseconds: 10));
}
Result:
Loading : ████████████████████████████████████████.................... 673/1000 67.3% [ 0:00:13.28 / 0:00:06.45 ]
Note: You can use the total and desc setters to change the total number of steps and description mid-way.
Dependency list 1 items
^1.0.0Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗