-
-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR]: dotLottie support #505
Comments
Could you provide the spec of the format and a use case that how Lottie in Flutter uses that format? |
This is document of dotLottie from Lottie: https://lottiefiles.notion.site/Getting-started-with-dotLottie-907cb7b157b34990a7bba7bcae8f21b0 As mentioned in this document, dotLotties is allowing for considerably smaller animation files compared to JSON. It makes Lottie animation file size smaller than JSON and has some benefits in Lottie Development and Design. lottie package currently supports dotLottie from 3.0.0, I think flutter_gen currently supports .zip and hopefully will support dotLotties ASAP. |
Looks like we can accept the EDIT: I was looking at the implementation of the Lottie.asset(
'animation.lottie',
decoder: customDecoder,
);
Future<LottieComposition?> customDecoder(List<int> bytes) {
return LottieComposition.decodeZip(bytes, filePicker: (files) {
return files.firstWhere((f) => f.name == 'animations/cat.json');
});
} Consider the above code, the JSON file is manually picked by the iterator. We didn't support generating something like that so the generated assets probably won't have a |
Make sense! If you can accept it as extension, I think we should add more docs / notes for require some extra definition attention |
|
Is there an existing issue for this?
Describe the problem
dotLottie is compressed lottie file format that would be great to support
Describe the solution
Support the file format
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: