搜尋套件、儲存庫與 APP 分類

cupertino_progress_bar 封面
套件詳情v0.2.0

cupertino_progress_bar

一個非互動式進度條包含一條從左到右填滿的軌道,用於顯示具有已知持續時間的任務進展。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
5720
喜歡數
18
Pub 分數
150

安裝套件

flutter pub add cupertino_progress_bar

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個非互動式進度條,透過從左到右填滿軌道來直觀地表示任務進度。採用Cupertino(iOS風格)美學,可無縫整合至針對iOS及其他平台的Flutter應用中。適用於顯示具有已知持續時間的任務完成狀態,例如檔案上傳或載入序列。此組件輕量且與Apple設計語言一致,同時支援多個平台。

適用情境

  • 顯示上傳/下載進度
  • 在表單中顯示任務完成情況
  • 在應用程式中可視化載入狀態
  • 追蹤媒體播放進度
  • 指示應用程式初始化進度

主要特色

  • iOS 風格的 Cupertino 設計
  • 從左到右填滿動畫
  • 預設為非互動式
  • 跨平台支援
  • 可自定的軌道和進度顏色
  • 平滑的視覺過渡

適合對象

  • iOS 風格的 Flutter 應用
  • 移動應用中的進度指示器
  • 簡單、乾淨的加載反饋
  • 需要平台一致使用者介面的應用程式
  • 開發人員優先考慮原生外觀和感覺

使用建議

  • 不適用於互動式使用者輸入
  • 除了顏色和尺寸之外,客製化選項有限
  • 需要手動更新進度值
  • 不支援反向方向
  • 無內建的暫停/恢復控制

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Cupertino Progress Bar for Flutter

pub license: BSD build codecov

A progress bar includes a track that fills from left to right to show the progression of a task with a known duration. Progress bars are non-interactive, although they are often accompanied by a button for canceling the corresponding operation.

Screenshots

Light Dark
Light CupertinoProgressBar Dark CupertinoProgressBar

Example

CupertinoProgressBar(
  value: 0.77,
)

Guidelines

Always report progress accurately. Don’t display inaccurate progress information just to make your app appear busy. Only use progress bars for tasks that are quantifiable. Otherwise, use an activity indicator.

Use progress bars for tasks with a well-defined duration. Progress bars are great for showing the status of a task, especially when it helps convey how much longer the task needs to complete.

Hide the unfilled portion of track in navigation bars and toolbars. By default, a progress bar’s track includes both filled and unfilled portions. When used in a navigation bar or toolbar, such as to denote a page loading, a progress bar should be configured to hide the unfilled portion of the track.

Consider customizing a progress bar’s appearance to match your app. A progress bar’s appearance can be adjusted to match your app’s design. You can specify, for example, a custom color for both the track and fill.

See also:

Usage

To use this package, add cupertino_progress_bar as a dependency in your pubspec.yaml file.

所屬分類

原始碼儲存庫

使用此套件的專案