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

liquid_progress_indicator_v2 封面
套件詳情v0.5.0

liquid_progress_indicator_v2

基於 https://pub.dev/packages/liquid_progress_indicator 修復 Flutter 3.10 之後的問題。一個具有水流效果的進度指示器,功能類似於 Flutter 內建的 ProgressIndicator。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
8040
喜歡數
154
Pub 分數
140

安裝套件

flutter pub add liquid_progress_indicator_v2

套件介紹

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

一個 Flutter 套件,提供類似水波的動畫進度指示器,靈感來自原始的 liquid_progress_indicator。它透過類似 Flutter 內建 ProgressIndicator 的流體動態效果增強視覺吸引力。專為在所有主要平台——Android、iOS、Web、macOS、Windows 和 Linux 上順暢運作而設計,此版本特別解決了 Flutter 3.10 後引入的相容性問題。非常適合需要引人入勝載入反饋的現代 UI。

適用情境

  • 載入畫面
  • 表單提交指示器
  • 後台任務追蹤
  • 互動式應用引導
  • 即時資料更新

主要特色

  • 流體水狀動畫
  • 跨平台相容性
  • Flutter 3.10+ 修復
  • 可自定義的顏色和大小
  • 所有平台上的流暢效能

適合對象

  • 尋求視覺上吸引人的加載器的開發人員
  • 具有現代UI設計的應用程式
  • 跨平台 Flutter 項目
  • 以使用者體驗為導向的應用程式

使用建議

  • 可能影響低階裝置的效能
  • 需要仔細的色彩對比以確保可讀性
  • 不適合極簡設計
  • 超出基本樣式的自訂功能有限
  • 依賴於平台的渲染能力

原始 README

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

liquid_progress_indicator V2

Liquid progress indicator for Flutter.

This version fix the original package Liquid progress indicator issues after upgrading to flutter 3.10 which was making it incompatible.

Features

  • Liquid circular progress indicator.
  • Liquid linear progress indicator.
  • Liquid custom progress indicator.
  • Works similarly to Flutters own ProgressIndicator.
  • Customise colors, borders, direction, etc.

Usage

import 'package:liquid_progress_indicator_v2/liquid_progress_indicator.dart';
LiquidCircularProgressIndicator
LiquidCircularProgressIndicator(
  value: 0.25, // Defaults to 0.5.
  valueColor: AlwaysStoppedAnimation(Colors.pink), // Defaults to the current Theme's accentColor.
  backgroundColor: Colors.white, // Defaults to the current Theme's backgroundColor.
  borderColor: Colors.red,
  borderWidth: 5.0,
  direction: Axis.horizontal, // The direction the liquid moves (Axis.vertical = bottom to top, Axis.horizontal = left to right). Defaults to Axis.vertical.
  center: Text("Loading..."),
);
LiquidLinearProgressIndicator
LiquidLinearProgressIndicator(
  value: 0.25, // Defaults to 0.5.
  valueColor: AlwaysStoppedAnimation(Colors.pink), // Defaults to the current Theme's accentColor.
  backgroundColor: Colors.white, // Defaults to the current Theme's backgroundColor.
  borderColor: Colors.red,
  borderWidth: 5.0,
  borderRadius: 12.0,
  direction: Axis.vertical, // The direction the liquid moves (Axis.vertical = bottom to top, Axis.horizontal = left to right). Defaults to Axis.horizontal.
  center: Text("Loading..."),
);
LiquidCustomProgressIndicator
LiquidCustomProgressIndicator(
  value: 0.2 // Defaults to 0.5.
  valueColor: AlwaysStoppedAnimation(Colors.pink), // Defaults to the current Theme's accentColor.
  backgroundColor: Colors.white, // Defaults to the current Theme's backgroundColor.
  direction: Axis.vertical, // The direction the liquid moves (Axis.vertical = bottom to top, Axis.horizontal = left to right).
  shapePath: _buildBoatPath(), // A Path object used to draw the shape of the progress indicator. The size of the progress indicator is created from the bounds of this path.
)

This version has been fixed to work on FENLES APP. However can be freely used as it contains only the fix for newer flutter versions

所屬分類

原始碼儲存庫

使用此套件的專案