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

flutter_rounded_progress_bar 封面
套件詳情v0.3.2

flutter_rounded_progress_bar

在 Flutter 中可自訂顏色和邊框的圓角進度條。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
598
喜歡數
92
Pub 分數
140

安裝套件

flutter pub add flutter_rounded_progress_bar

套件介紹

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

一個 Flutter 套件,提供可自訂的圓角進度條,支援顏色與邊框調整。它旨在透過流暢、現代的進度指示器增強使用者介面,適用於載入狀態、任務完成或任何需要視覺反饋的場景。此元件可在所有主要平台(包括 Android、iOS、Web、macOS、Windows 與 Linux)上運作,確保外觀與行為的一致性。其簡潔與彈性使其成為開發者尋找優雅替代標準線性進度條的理想選擇。

適用情境

  • 載入指示器
  • 任務完成追蹤
  • 表單進度可視化
  • 儀表板指標
  • 引導流程

主要特色

  • 可自訂顏色
  • 可調節的邊框圓角
  • 平台無關設計
  • 平滑動畫
  • 輕鬆整合
  • 可設定的描邊寬度

適合對象

  • 尋求現代美學的UI設計師
  • 開發跨平台應用的開發者
  • 需要視覺進度反饋的應用程式
  • 簡單但精緻的載入畫面
  • 依賴項最少的專案

使用建議

  • 僅限基本進度功能
  • 無內建文字標籤
  • 需要手動處理動態更新
  • 不適合複雜的進度場景
  • 不支援漸層填滿

原始 README

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

Flutter Rounded Progressbar

Custom Progressbar

Screenshot

Installing

add dependency in pubspec.yaml

dependencies:
  flutter_rounded_progress_bar: 0.2.0

Usage

simple rounded progress bar.

RoundedProgressBar(
    childLeft: Text("$percent%",
        style: TextStyle(color: Colors.white)),
    percent: percent,
    theme: RoundedProgressBarTheme.green)

Screenshot

Structure

Support Widget 3 position as childCenter , childLeft , childRight Screenshot

customize

use RoundedProgressBarStyle class

RoundedProgressBar(
    style: RoundedProgressBarStyle(
        widthShadow: 30, colorBorder: Colors.blue[200]),
    percent: percent,
    reverse: true,
),
RoundedProgressBar(
    style: RoundedProgressBarStyle(
        borderWidth: 0, 
        widthShadow: 0),
    margin: EdgeInsets.symmetric(vertical: 16),
    borderRadius: BorderRadius.circular(24),
    percent: percent,
),       

Screenshot

duration animation.

RoundedProgressBar(
    milliseconds:1000,
     percent: percent,
     theme: RoundedProgressBarTheme.yellow,
     borderRadius: BorderRadius.circular(24)),

Screenshot

Theme

RoundedProgressBarTheme.blue, 
RoundedProgressBarTheme.red
RoundedProgressBarTheme.green
RoundedProgressBarTheme.purple
RoundedProgressBarTheme.yellow 
RoundedProgressBarTheme.midnight

Icon Rounded Progressbar

Simple using icon.

IconRoundedProgressBar(
    icon: Padding(
        padding: EdgeInsets.all(8), child: Icon(Icons.person)),
    theme: RoundedProgressBarTheme.green,
    margin: EdgeInsets.symmetric(vertical: 16),
    borderRadius: BorderRadius.circular(6),
    percent: percent,
),

Screenshot

Custom background and icon.

IconRoundedProgressBar(
    widthIconSection: 70,
    icon: Padding(
        padding: EdgeInsets.all(8),
        child: Icon(Icons.airline_seat_flat, color: Colors.white)),
    style: RoundedProgressBarStyle(
        colorBackgroundIcon: Color(0xffc0392b),
        colorProgress: Color(0xffe74c3c),
        colorProgressDark: Color(0xffc0392b),
        colorBorder: Color(0xff2c3e50),
        backgroundProgress: Color(0xff4a627a),
        borderWidth: 4,
        widthShadow: 6),
    margin: EdgeInsets.symmetric(vertical: 16),
    borderRadius: BorderRadius.circular(6),
    percent: percent,
),

Screenshot

所屬分類

原始碼儲存庫

使用此套件的專案