v1.1.1square_progress_bar
一個方形進度條,您可以輕鬆使用。只需提供 0.0 到 1.0 範圍內的進度,即可立即使用。
29喜歡 83近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
yasirdx777/square_progress_bar open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
dependencies:
square_progress_bar: ^1.1.1
Just provide the progress in a range from 0.0 to 1.0 and you are set to go.
SquareProgressBar(
width: 100, // default: max available space
height: 100, // default: max available space
progress: _progress, // provide the progress in a range from 0.0 to 1.0
isAnimation: false, // default: false, animate the progress of the bar
solidBarColor: Colors.amber, // default: blue, main bar color
emptyBarColor: Colors.orange.withOpacity(0.2), // default: gray, empty bar color
strokeWidth: 20, // default: 15, bar width
barStrokeCap: StrokeCap.round, // default: StrokeCap.round, bar cap shape
isRtl: false, // default: false, bar start point
gradientBarColor: const LinearGradient(
begin: Alignment.topRight,
end: Alignment.bottomLeft,
colors: <Color>[Colors.red, Colors.amber],
tileMode: TileMode.repeated,
), // default: null, if you pass gradient color it will be used instead of solid color for the main bar
child: Center(
child: Text(
_percentageLabel,
style: const TextStyle(fontWeight: FontWeight.bold),
),
),
)
MIT Free Software, Hell Yeah!
依賴清單 3 項
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗