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

liquid_progress_indicator 封面
套件詳情v0.4.0

liquid_progress_indicator

一個具有水流效果的進度指示器,適用於 Flutter。其運作方式與 Flutter 內建的 ProgressIndicator 相似。

近 30 天下載
785
喜歡數
723
Pub 分數
70

安裝套件

flutter pub add liquid_progress_indicator

套件介紹

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

一個在 Flutter 中具有視覺吸引力的進度指示器,模擬液體效果,提供類似內建 ProgressIndicator 的平滑、流動動畫。它透過動態、流暢的視覺效果提升使用者體驗,適用於載入狀態與進度追蹤。該套件輕量且易於整合,提供可自訂的顏色、尺寸與動畫速度。非常適合重視視覺反饋的現代、引人入勝的使用者介面。

適用情境

  • 載入畫面
  • 表單中的進度追蹤
  • 互動應用引導
  • 遊戲加載動畫
  • 資料獲取期間的視覺反饋

主要特色

  • 液態般的流動動畫
  • 可客製化的顏色和尺寸
  • 流暢、反應迅速的過渡效果
  • 與 Flutter 的輕鬆整合
  • 支援線性和圓形樣式

適合對象

  • 現代應用程式介面
  • 注重設計的應用程式
  • 使用者參與度提升
  • 需要流暢運動的動畫
  • 尋求視覺精緻的開發者

使用建議

  • 可能影響低階裝置的效能
  • 超出基礎樣式的客製化功能有限
  • 不適合高頻率更新
  • 需要仔細設計以與整體主題保持一致
  • 動畫可能在極簡的使用者介面中造成分心

原始 README

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

liquid_progress_indicator

Liquid progress indicator for Flutter.

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/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.
)

所屬分類

原始碼儲存庫

使用此套件的專案