CameronStuartSmith / flutter_lottie

Use lottie in flutter for both iOS and Android
Apache License 2.0
158 stars 75 forks source link

Android shows gray container around the the lottie animation #3

Open colbymaloy opened 5 years ago

colbymaloy commented 5 years ago

Noticed this when i ran the project on my Android device running Android 6.0. I was seeing a gray box around the Lottie animation that wasn't there on iOS. I kept seeing a print statement about enableMergePathsForKitCatAndAbove so i went to the java file to try and enable it. i added that method with (true) and it didnt fix it. I thought it may just be my device so i ran it in an emulator running API 28 and it still has a box around the view(although its a white box on the emulator). Don't know if it's the assets or an android platform bug

PenF00k commented 5 years ago

any workaround on this?

colbymaloy commented 5 years ago

I actually ended up just exporting the SVG files to Flare by 2Dimensions and animated it by hand in their web tool.

josephchenghmlet commented 5 years ago

After tested in Lottie-Android on both emulator and device, there is no such issue with the gray background container. Seems like the issue is created from this library. @CameronStuartSmith Will you be fixing this?