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

Animation not displayed correctly #308

Open DavidHajum opened 10 months ago

DavidHajum commented 10 months ago

I am struggling to display an animation correctly.

This is my current code:

Lottie.asset( 'assets/animations/testcomp.json', frameRate: FrameRate.max, repeat: true, );

which produces this output:

https://i.stack.imgur.com/fuikp.png

It should, however, look like this: https://lottiefiles.com/animations/testcomp-uuu8ikPIjO

I have not found anything regarding my problem in this list https://lottiefiles.com/supported-features

RamazanTimurNevomes commented 9 months ago

I have the same problem.

DavidHajum commented 9 months ago

Maybe this will help you: https://stackoverflow.com/questions/77335542/flutter-lottie-animation-displayed-incorrectly/77486778#77486778

xvrh commented 9 months ago

This should be fixed in the latest version v3.0.0-alpha.2. Please try it and report any issue.

ggirotto commented 9 months ago

@xvrh facing a similar issue in the latest v3.0.0-alpha.2 and Flutter 3.16.0

Animation:

https://github.com/xvrh/lottie-flutter/assets/11745745/4272442b-7942-483b-902f-5d1c2f2ae166

Result:

https://github.com/xvrh/lottie-flutter/assets/11745745/2acd1766-3dbb-4f7d-91c0-54c142b29373

joao-albach commented 8 months ago

i have the same issue, flutter 3.16 makes some layers disappear

martinralfreindl commented 6 months ago

Similar issue with Google's Party Popper emoji: https://googlefonts.github.io/noto-emoji-animation/?icon.query=party

Should look like this: Screenshot 2024-01-29 at 5 55 59 PM

But ends up like this: Screenshot 2024-01-29 at 5 55 19 PM

Reversion to version 2.7.0 solves this issue.

flodaniel commented 4 months ago

@martinralfreindl did you find a solution except reverting to 2.7.0? We have the exact same issue for the party popper emoji but others we tested work with no problem.

martinralfreindl commented 4 months ago

Unfortunately not. I just gave up and used another emoji instead.

On Thu, 4 Apr, 2024, 13:32 Florian Daniel, @.***> wrote:

@martinralfreindl https://github.com/martinralfreindl did you find a solution except reverting to 2.7.0? We have the exact same issue for the party popper emoji but others we tested work with no problem.

— Reply to this email directly, view it on GitHub https://github.com/xvrh/lottie-flutter/issues/308#issuecomment-2036459874, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOSKOHGS6SSUMZCLEV7EKSDY3UCJJAVCNFSM6AAAAAA6KCKU2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZWGQ2TSOBXGQ . You are receiving this because you were mentioned.Message ID: @.***>