搜尋套件、儲存庫與 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

原始碼儲存庫

使用此套件的專案

暫無相關資料。