v0.3.0
progresso
適用於 Flutter 的線性進度條,支援非零起始值、線上的多個點以及自訂樣式
23喜歡 282近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
Flutter 的線性進度條
以下為英文專案原文快照,最新內容請造訪 GitHub。
A linear progress bar for Flutter.
Add to pubspec.yaml
progresso: <lastest version>
import in your flutter project
import 'package:progresso/progresso.dart';
In its simplest form Progresso takes a progress parameter (0.0 to 1.0)
Progresso(progress: 0.5);
You can also configure the color
Progresso(
progress: 0.5,
progressColor: Colors.red,
backgroundColor: Colors.blue
);
Progresso can even start at a value that is not zero!
Progresso(start: 0.3, progress: 0.5);
Give the progress bar different stroke caps:
Progresso(
progress: 0.5,
progressStrokeCap: StrokeCap.round,
backgroundStrokeCap: StrokeCap.round
);
Give a List of points to show points along the progress bar
Progresso(progress: 0.5, points: [0.2, 0.4]);
依賴清單 2 項
{"sdk":"flutter"}{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗