flame icon indicating copy to clipboard operation
flame copied to clipboard

Lottie support

Open spydon opened this issue 4 years ago • 7 comments

What could be improved

It would be great to have a bridge package that implemented support for lottie animations.

Why should this be improved

Lottie is an open source animation file format that’s tiny, high quality, interactive, and can be manipulated at runtime. The top 500 apps on the App store now use Lottie to engage users and enhance conversions.

Any risks?

Since this would be done as a bridge package; no.

More information

https://pub.dev/packages/lottie https://lottiefiles.com/

spydon avatar Dec 21 '21 10:12 spydon

spine please 😆

chenenyu avatar Dec 22 '21 02:12 chenenyu

spine please 😆

That should be its own issue. Looks like there are some dart integrations done for Spine already at least, that the one that builds the bridge library could have a look at.

spydon avatar Dec 22 '21 02:12 spydon

Why not use Rive? Lottie has performance issues especially on iOS. Even the native swift package struggles with anything whilst a Lottie animation is being played.

doug-orchard avatar Jan 04 '22 06:01 doug-orchard

Why not use Rive? Lottie has performance issues especially on iOS. Even the native swift package struggles with anything whilst a Lottie animation is being played.

We have support for rive already. I didn't know about the performance issues of Lottie, I haven't seen any performance issues in Duolingo for example while they are playing lottie animations, is there anywhere to read more about this?

spydon avatar Jan 04 '22 12:01 spydon

Our iOS devs have struggled to get the animations to play smoothly. They explained the last version degraded performance significantly. https://github.com/airbnb/lottie-ios/issues/1314 is a good example of the issue.

doug-orchard avatar Jan 04 '22 12:01 doug-orchard

Have you tried the Flutter library for it? Since it is pure Dart it is possible that it wouldn't have the same performance issues on iOS. https://pub.dev/packages/lottie

spydon avatar Jan 04 '22 12:01 spydon

Our iOS devs have struggled to get the animations to play smoothly. They explained the last version degraded performance significantly. airbnb/lottie-ios#1314 is a good example of the issue.

Hey! That issue airbnb/lottie-ios#1314 was recently solved and closed. So maybe it i a good time for including lottie in Flame Engine? It would be an amazing feature!

NashIlli avatar Aug 05 '22 12:08 NashIlli

Any comments on this? I think that the previous issue was resolved on Lottie Ios https://github.com/airbnb/lottie-ios/issues/1314 Is it on your roadmap or something similar? Thanks in advance! :) @doug-orchard

NashIlli avatar Sep 23 '22 14:09 NashIlli

Any comments on this? I think that the previous issue was resolved on Lottie Ios airbnb/lottie-ios#1314 Is it on your roadmap or something similar? Thanks in advance! :) @doug-orchard

If anyone makes a bridge package (flame_lottie) just like with rive we will happily review and accept it into the code base. We don't have any plans of creating this package ourselves at the moment.

spydon avatar Sep 23 '22 14:09 spydon

I would be interested looking into this feature :)

tozu avatar Oct 03 '22 14:10 tozu

Hi, @tozu please let me know if you are not planing to do this,

@spydon i am intersted in taking this one

dipakp2726 avatar Oct 21 '22 03:10 dipakp2726

Hi @dipakp2726

I'm still planning to do this, and I'm currently in the works

My apologies that it takes a bit longer 😥

// Tozu

tozu avatar Oct 21 '22 05:10 tozu

Hi @spydon this is indeed special issue and shouldn't have ticket reservation. if Assignee doesn't able to complete it than an only special issue is going to be wasted,

dipakp2726 avatar Oct 21 '22 08:10 dipakp2726

Hi @spydon this is indeed special issue and shouldn't have ticket reservation. if Assignee doesn't able to complete it than an only special issue is going to be wasted,

This is a special issue that I created specifically for @tozu because he has the knowledge to complete this in a professional manner. Stop spamming this issue now please, if you want to discuss it, we can discuss it on Discord.

spydon avatar Oct 21 '22 09:10 spydon

Hello @tozu ! Is there an ETA for this issue? We are planning how to handle the animations in Flame and we really hope that we can use Lottie animations.

Thanks a lot for your work!

NashIlli avatar Nov 01 '22 20:11 NashIlli