搜索插件、代码仓与 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.

所属分类

源码仓库

使用此插件的项目