搜索插件、代码仓与 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.
)

所属分类

源码仓库

使用此插件的项目