Particular 是一個高性能的 Flutter 小部件,專為創造流暢且可自訂的粒子效果而設計。它利用先進的渲染技術,在移動裝置、Web 和桌面等多個平台提供流暢的動畫。非常適合用於增強應用程式背景中的動態視覺元素,支援漸層、著色器與即時互動。此套件經過效能優化,即使在複雜場景下也不會降低幀率。透過簡單的 API 與豐富的設定選項,開發者能輕鬆將精美的粒子系統整合至其應用程式中。
適用情境
建立動畫應用背景
透過動態視覺效果增強使用者介面
新增互動式粒子動畫
改進應用入門體驗
設計沉浸式登入頁面
實現環境背景效果
主要特色
高效能渲染
跨平台支援(Android、iOS、Web、macOS、Windows、Linux)
對漸變和著色器的支援
即時粒子互動
可自訂的粒子行為
輕量且高效
適合對象
尋求視覺魅力的UI設計師
開發人員建構引人入勝的引導畫面
需要環境背景動畫的應用程式
互動式數位體驗
注重效能的專案
創意應用介面
使用建議
可能需要針對低階裝置進行優化
複雜的設定可能會增加建構時間
除了基本範例之外,文件內容有限
不適合靜態或簡單的背景
需要理解粒子系統概念
大量粒子數量可能導致的記憶體使用
原始 README
以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。
Enhance your app or game visuals with this high-performance Flutter Particles System widget. Utilize JSON or programmatic configuration, seamlessly integrating with popular particles editors for effortless customization.
Customizable (live) Particle Effects.
Ready Presets (JSON Configs).
Seamless Integration with Editors.
Optimized Performance with 1~10k particle at frame
Whether you're a designer or developer, Particular empowers you to bring your creative visions with ease.
- Some Presets:
- Installation
Add particular to your pubspec.yaml file:
For detailed installation instructions, refer to the installation guide on pub.dev.
- Configurate your particles
You have two options for configuring your particles:
Programmatic Configuration:
Manually configure your particle controller in code. Refer to the following steps for more details.
- Getting Started with Coding
Follow these steps to integrate the particles system into your Flutter app:
I. Insert Particle Files into Your Project:
The Particular Editor exports one or multiple particle layers. For each particle layer, it generates a configuration file (configs.json) and a related image file (texture.png). In the configuration file, there is a node named textureFileName, which refers to the image file. Place the image and configs.json file in your project's assets folder, and add the necessary assets entry in your pubspec.yaml file.
This revised README provides clear installation instructions, options for configuring particles, and steps for integrating and customizing the particle system in your Flutter app. If you have any questions or need further assistance, don't hesitate to ask!