搜索插件、代码仓与 APP 分类

插件详情v3.0.0

flare_loading

基于自定义 Flare 动画的加载控件,可让你创建美观的自定义加载控件或对话框

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
784
喜欢数
36
Pub 分数
130

安装插件

flutter pub add flare_loading

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 包,提供由 Flare 动画驱动的可自定义加载控件。它使开发者能够创建视觉上吸引人的加载指示器或对话框,拥有流畅的动画图形。专为跨多个平台集成而构建,利用 Flare 动画的灵活性,无需复杂自定义代码即可提供引人入胜的用户体验。非常适合在异步操作期间需要精致动画反馈的应用。

适合场景

  • 自定义加载指示器
  • 引导页面
  • 异步操作反馈
  • App 启动画面
  • 加载对话框
  • 交互式 UI 元素

主要特点

  • 基于 Flare 的动画
  • 跨平台支持
  • 轻松自定义
  • 流畅的性能
  • 可重用组件
  • 轻量级集成

适合对象

  • 注重设计的应用程序
  • 移动和Web应用
  • UI/UX 增强项目
  • 需要动画反馈的应用程序
  • 使用 Flare 动画的开发者

使用建议

  • 需要 Flare 动画文件
  • 仅限 Flare 兼容的工作流程
  • 可能会增加应用大小
  • 需要妥善的资源管理
  • 不适用于简单的旋转器
  • 依赖 Flare 运行时

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

flare_loading

pub package

Loading widget based on a Flare animation, allow you to create custom loading widgets or dialogs

If you're using Rive instead of Flare please use rive_loading

Usage

FlareLoading(
  name: 'animation.flr', 
  startAnimation: 'intro',
  loopAnimation: 'circle',
  endAnimation: 'end',
);

name: path and name of the flare animation

until: callback that return a future to process your initialization

isLoading: alternative to until if you want to manage loading state with a boolean

loopAnimation: animation name to run in loop

endAnimation: animation name to run once until is complete or isLoading false

startAnimation: animation name to run once as start

height: force the height of the flare animation, by default it take the all place available

width: force the width of the flare animation, by default it take the all place available

alignment: alignment of the flare animation, center by default

onSuccess callback called when the animation is finished and isLoading is false or until is complete

onError callback called until has failed

Available mode

Only one animation

Basically you have one animation to show and then just need to stay at last frame. In order to do that only specify the startAnimation

Start and loop animation

Your animation have an intro and a loop state, in order to do that only specify the startAnimation and loopAnimation

End and loop animation

Your animation have a finish and a loop state, in order to do that only specify the endAnimation and loopAnimation

Start and end animation

Your animation have an intro and a finish that should stay on the last frame, in order to do that only startAnimation and endAnimation

Start, end and loop animation

Your animation have an intro, a finish and a loop state, in order to do that specify the startAnimation, endAnimation and loopAnimation

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目