一個 Flutter 庫,可讓開發者建立類似 Apple Watch 的圓形進度環。這些視覺效果出色的動畫環以緊湊且直覺的方式顯示進度,非常適合追蹤目標、時間或完成百分比。此套件支援 Android、iOS、Web、macOS、Windows 及 Linux 多個平台,確保跨裝置的一致性使用者介面。提供可自訂的顏色、線條寬度與動畫效果,以符合應用程式主題。非常適合健身應用、儀表板或任何需要優雅進度視覺化的應用。
適用情境
健身追蹤應用程式
儀表板小部件
目標完成指示器
基於時間的進度顯示
互動式 UI 元素
主要特色
Apple Watch 風格的圓形進度環
可自定義的顏色和筆畫寬度
平滑動畫
跨平台支援
簡單 API 結合
響應式設計
適合對象
開發健身或健康類應用的開發者
尋求現代 UI 元件的設計師
需要視覺進度回饋的應用程式
跨平台應用
目標導向介面的專案
使用建議
需要理解 Flutter 的繪圖和動畫系統
可能需要在低階設備上進行效能調校
僅限圓形進度可視化
不適合複雜的資料視覺化
原始 README
以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。
Activity Rings
Library to create Progress bars in Apple Watch style rings -
Apple Watch Rings
To use, import package:activity_ring/activity_ring.dart.
This library is built with to be extremely customizable with low effort.
Please check the API documentation if you get stuck anywhere.
Note: Do not let the auto brighten colors to exceed 3 rings as this will cause a runtime exception.
The above ring is automatically painted with gradient from colors given,
where each color in list represents that ring's color. To have a
constant color just pass gradient: false to RingColorScheme.
The above ring is automatically painted with gradient from colors given,
where each color in list represents that ring's color. To have a
constant color just pass gradient: false to RingColorScheme.