๐Ÿ”ฅ LavaPhoenix

LavaPhoenix is a cross-platform Flutter renderer for Lava animation format. It enables efficient tile-based animation playback with real-time performance โ€” powered purely by Flutter rendering, without using platform views.

Designed to work seamlessly on iOS, Android, and Web.

โœจ Features

  • ๐Ÿ” Real-time playback of Lava animations
  • ๐ŸŽจ Pure Flutter rendering via CustomPainter
  • ๐Ÿ“ฆ Parses .lava/.olava animation manifests and tile atlases
  • ๐Ÿ“ฑ Cross-platform: iOS, Android, Web
  • ๐Ÿงต Async loading and full playback control via LavaController
  • ๐Ÿ’ก No native plugins or platform views required

๐Ÿš€ Getting Started

Add to your pubspec.yaml:

dependencies:
  lava_phoenix: ^0.1.0

๐Ÿงฐ Usage

1. Prepare your assets

Place your Lava animation files inside your assets/ folder, e.g.:

assets/
โ””โ”€โ”€ animations/
    โ””โ”€โ”€ fire_loop/
        โ”œโ”€โ”€ manifest.json
        โ”œโ”€โ”€ image_1.avif
        โ”œโ”€โ”€ image_2.avif
        โ””โ”€โ”€ ...

Update your pubspec.yaml:

flutter:
  assets:
    - assets/animations/fire_loop/

2. Load and play the animation

final controller = LavaController();

@override
void initState() {
  super.initState();
  controller.loadLavaAsset('assets/animations/fire_loop');
  controller.play();
}

3. Display the animation

LavaView(controller: controller)

๐Ÿ“ธ Example

A full working example can be found in the repository:

OpenLava/Example/LavaPhoenixExample

You can run it via:

flutter run -d chrome
flutter run -d ios
flutter run -d android

๐Ÿ“‚ File Format

This package plays back Lava animations packaged as a folder containing:

  • manifest.json: animation metadata and frame diffs
  • atlas frames: referenced in the manifest by filename

Compatible with .lava or .olava zip-style folders unpacked manually.

๐Ÿค Contributing

Contributions are welcome!

Feel free to open an issue or submit a PR if youโ€™d like to improve rendering performance, support new features, or extend platform support.

๐Ÿ“„ License

MIT License ยฉ 2025 AlexStrNik

Libraries

lava_asset
lava_controller
lava_manifest
lava_painter
lava_phoenix
LavaPhoenix is a cross-platform Flutter renderer for Lava animation format.
lava_view