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

animated_background 封面
套件詳情v2.0.0

animated_background

適用於 Flutter 的動畫背景。可輕鬆擴展以在畫布上繪製任何內容。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2270
喜歡數
311
Pub 分數
140

安裝套件

flutter pub add animated_background

套件介紹

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

一個用於建立可自訂畫布繪製的動畫背景的 Flutter 套件。它讓開發者能輕鬆實作動態視覺效果,例如流動漸層、粒子系統或自訂動畫,直接呈現在螢幕背景上。此套件設計為可擴展,允許使用者使用 Canvas API 定義自己的繪圖邏輯。非常適合以最少程式碼提升應用美學,支援所有主要平台,包含行動裝置、網頁與桌面。

適用情境

  • 建立沉浸式啟動畫面
  • 新增動態UI背景
  • 增強遊戲或應用的開場
  • 設計視覺豐富的落地頁
  • 實現動畫漸變疊加

主要特色

  • 可擴展的畫布繪圖
  • 流暢的動畫效能
  • 跨平台相容性
  • 透過 pub 的簡單整合
  • 可自訂的動畫模式

適合對象

  • 尋求視覺魅力的UI設計師
  • 開發人員建構吸引人的引導流程
  • 需要動態背景視覺效果的應用程式
  • 創意數位體驗
  • 面向前端的 Flutter 項目

使用建議

  • 可能影響低階裝置的效能
  • 需要了解 Canvas 繪圖
  • 動畫複雜度會影響電池使用
  • 未針對高負載即時渲染進行優化
  • 內建預設有限,僅限基本效果

原始 README

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

Animated Backgrounds for Flutter

pub package

Animated Backgrounds for Flutter. Easily extended to paint whatever you want on the canvas.

Screenshot Screenshot

Note: These examples are laggy because they were recorded from the emulator. Other examples available in the screenshots folder.

How to use

In your pubspec.yaml:

dependencies:
  animated_background: ^1.0.5

In your Dart file:

import 'package:animated_background/animated_background.dart';

Use in a Stateful Widget with mixin TickerProviderStateMixin or pass a ticker provider in vsync.

AnimatedBackground(
  behaviour: RandomParticleBehaviour(),
  vsync: this,
  child: Text('Hello'),
);

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案