搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案