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.15k stars 197 forks source link

feat: add `autoDisposeImage` param to automatically evict image from cache when object dispose #289

Open Yongle-Fu opened 1 year ago

xvrh commented 1 year ago

Can you expand a bit on what the goal of the PR is?

Would we achieve the same result with a boolean like cacheImages: false that would prevent caching the image entirely?

Yongle-Fu commented 11 months ago

Yes, the purpose is to automatically release its memory usage when Lottie Widget is no longer in use.