v1.3.0console_bars
콘솔에서 쉽게 사용자 정의 가능한 진행률 막대를 만들 수 있는 패키지입니다.
33좋아요 1.1만30일 다운로드160Pub 점수
AndroidiOSmacOSWindowsLinux
콘솔에서 진행률 막대를 생성하기 위한 다트 라이브러리입니다.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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.
의존성 목록 1 개
^1.0.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗