You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Lottie did you test this on?
I found this issue in Dart version of Lottie what is an unofficial conversion of lottie-android. I tested it with the Lottie Android app, where the bug also appeared so I thought it is an "original bug"
What version of Android did you test this on?
Android 31
Steps To Reproduce
Put text into a parent layer and add opacity animation to this parent layer
Checklist
Describe the bug
Parent opacity not propagated to TextLayer.
The problem is
parentAlpha
not calculated into TextLayer's alpha:int alpha = opacity * 255 / 100;
Solution:
int alpha = (int) ((parentAlpha / 255f * (float) opacity / 100f) * 255);
like in BaseLayer (tested & working)https://github.com/airbnb/lottie-android/blob/master/lottie/src/main/java/com/airbnb/lottie/model/layer/TextLayer.java#L159
What version of Lottie did you test this on?
I found this issue in Dart version of Lottie what is an unofficial conversion of lottie-android. I tested it with the Lottie Android app, where the bug also appeared so I thought it is an "original bug"
What version of Android did you test this on?
Android 31
Steps To Reproduce
Put text into a parent layer and add opacity animation to this parent layer
Screenshots
N/A
Files
opacity_sample.zip
The text was updated successfully, but these errors were encountered: