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

所属分类

源码仓库

使用此插件的项目