搜索插件、代码仓与 APP 分类

插件详情v2.0.1

intervalprogressbar

一个适用于 Flutter 的区间进度条。支持水平、垂直、多彩和区间进度。

近 30 天下载
35
喜欢数
15
Pub 分数
40

安装插件

flutter pub add intervalprogressbar

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 包,提供可自定义的间隔进度条,支持水平和垂直方向。它具有鲜艳的颜色,并能够显示多个进度间隔,非常适合可视化分段进度或基于时间的任务。该进度条设计直观且视觉吸引力强,适用于需要动态进度反馈的应用程序。它与 Flutter 的小部件系统无缝集成,配置简单,易于实现。

适合场景

  • 在应用程序中可视化分段进度
  • 显示基于时间的间隔
  • 增强加载屏幕中的用户反馈
  • 创建动画进度指示器
  • 显示多阶段任务完成

主要特点

  • 水平和垂直方向支持
  • 色彩丰富且可自定义的外观
  • 支持多个进度间隔
  • 与 Flutter 的简单集成
  • 平滑的动画过渡

适合对象

  • 开发任务跟踪应用的开发者
  • 寻求引人入胜的UI元素的设计人员
  • 需要时间进度可视化的应用
  • 具有多步骤流程的项目

使用建议

  • 有限的平台特定自定义
  • 无内置的无障碍功能支持
  • 可能需要额外的样式设置以适应复杂布局
  • 未针对极高频率的更新进行优化

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

IntervalProgressBar

Package

An interval progress widget for Flutter.

Preview

v1 v2
demo demo v2.0.1

Depend on it

https://pub.dev/packages/intervalprogressbar

Add this to your package's pubspec.yaml file:

dependencies:
  intervalprogressbar: ^{last_version}

Features

  • Horizontal
  • Vertical
  • Circle
  • Interval Progress
  • Colorful

Getting Started

Usage
Widget buildHorizontal() => IntervalProgressBar(
    direction: IntervalProgressDirection.horizontal,
    max: 30,
    progress: 10,
    intervalSize: 2,
    size: Size(400, 10),
    highlightColor: Colors.red,
    defaultColor: Colors.grey,
    intervalColor: Colors.transparent,
    intervalHighlightColor: Colors.transparent,
    reverse: true,
    radius: 0);
Widget buildVertical() => Row(
    mainAxisAlignment: MainAxisAlignment.center,
    children: [10, 29, 18, 27, 16, 15, 24, 3, 20, 10].map<Widget>((i) {
      return Padding(
          padding: EdgeInsets.only(right: 10),
          child: IntervalProgressBar(
              direction: IntervalProgressDirection.vertical,
              max: 30,
              progress: i,
              intervalSize: 2,
              size: Size(12, 200),
              highlightColor: Colors.red,
              defaultColor: Colors.grey,
              intervalColor: Colors.transparent,
              intervalHighlightColor: Colors.transparent,
              reverse: true,
              radius: 0));
    }).toList());
Widget buildCircle() => IntervalProgressBar(
      direction: IntervalProgressDirection.circle,
      max: 30,
      progress: 10,
      intervalSize: 2,
      size: Size(200, 200),
      highlightColor: Colors.red,
      defaultColor: Colors.grey,
      intervalColor: Colors.transparent,
      intervalHighlightColor: Colors.transparent,
      reverse: true,
      radius: 0,
      intervalDegrees: 5,
      strokeWith: 5,
    );
Property
Property type note
direction enum ProgressBar's direction, support vertical and horizontal
max int count of default blocks
progress int count of highlight blocks
intervalSize int size of interval blocks. when vertical direction, means height, when horizontal direction, means width
size Size size of this widget
highlightColor Color color of highlight blocks
defaultColor Color color of default blocks
intervalColor Color color of default intervals
intervalHighlightColor Color color of intervals which between highlight blocks
reverse bool
radius int
intervalDegrees double support for circle progress
strokeWith int support for circle progress

所属分类

依赖

依赖清单 1 项

  • pedantic^1.5.0

源码仓库

使用此插件的项目

暂无相关数据。