flutter_gen icon indicating copy to clipboard operation
flutter_gen copied to clipboard

[FR]: Support for lottie zip archives

Open RTAzis opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the problem

The current package supports Lottie JSON files. Lottie itself also supports ZIP archives where the archive and the JSON file inside have the same name convention. I propose adding support for these ZIP archives for enhanced functionality.

// Load an animation and its images from a zip file
Lottie.asset('assets/my_lottie_files/test.zip'),

Describe the solution

When lottie: true, it may loop through ZIP archives, unpack them into memory, detect .json files, and validate their signature.

Additional context

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

RTAzis avatar Mar 28 '24 15:03 RTAzis