套件概覽
一個輕量級的 Flutter 小部件,用於使用基於網格的佈局渲染精靈表動畫,並支援 TexturePacker 和 Aseprite 等工具產生的 JSON 資源圖格式。它支援命名動畫、多種播放模式以及外部動畫控制。非常適合需要平滑精靈過渡的 2D 遊戲和互動式 UI。該套件具備跨平台特性,可無縫整合至 Flutter 專案中。
適用情境
- 2D遊戲角色動畫
- 互動式 UI 元素
- 基於精靈的載入指示器
- 遊戲資產渲染
- 動畫圖示
主要特色
- Grid-based spritesheet parsing
- JSON atlas support (TexturePacker, Aseprite)
- Named animation sequences
- Playback mode control (loop, once, reverse)
- External animation controller
- Cross-platform compatibility
適合對象
- Game developers using Flutter
- UI designers needing animated sprites
- Projects with sprite-based assets
- Lightweight animation requirements
- Interactive app components
使用建議
- 需要正確的JSON圖集設定
- 限制為2D精靈渲染
- 無內建物理或碰撞
- 依賴外部工具進行精靈創建
- 未針對高幀率複雜動畫進行優化