xvrh / lottie-flutter

Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.
https://pub.dev/packages/lottie
MIT License
1.16k stars 196 forks source link

Use AssetLottie in README.md #261

Closed pacmanmati closed 1 year ago

pacmanmati commented 1 year ago

Update documentation to use AssetLottie(...).load() instead of LottieComposition.fromByteData(...)

Resolves https://github.com/xvrh/lottie-flutter/issues/215

xvrh commented 1 year ago

@pacmanmati great thanks! Can you make the change in example/lib/examples/custom_load.dart and run dart tool/generate_readme.dart? It will copy the code to the readme.

pacmanmati commented 1 year ago

@xvrh I updated the example and used generate_readme.dart, I also updated the description above the example to make it more relevant.

xvrh commented 1 year ago

Thanks for the contribution!