lottie-flutter icon indicating copy to clipboard operation
lottie-flutter copied to clipboard

Flutter Web: Chrome Lottie animation shows white box

Open yerkejs opened this issue 2 years ago • 6 comments

Hi, I have Lottie animation with grey elements. But on Chrome I see white box. on Safari it works pretty well. I tried already CanvasKit rendered, did not help. I am using 1.4.2 version. Flutter (Channel stable, 3.0.5,

yerkejs avatar Jan 05 '23 06:01 yerkejs

Hello, can you provide a reproducible example?

xvrh avatar Jan 07 '23 16:01 xvrh

I am using version 2.1.0 and the problem still exists, on chrome, the whole screen turns white. However, it works fine on Microsoft Edge.

Minimal reproducible example: https://github.com/tauqeerkhattak/lottie_example/blob/6eb30868b43d4cabca172923273c197e94b95303/lib/main.dart

tauqeerkhattak avatar Jan 09 '23 06:01 tauqeerkhattak

@tauqeerkhattak I tried your example with Flutter 3.3.10 but I don't see any problem. Is there any error in the Chrome Devtools console?

xvrh avatar Jan 10 '23 13:01 xvrh

Running the same code, I get the following screen:

https://user-images.githubusercontent.com/47942659/212043883-956a5bf4-ec44-4bc7-b59f-f7d5b2a6eba7.png

tauqeerkhattak avatar Jan 12 '23 10:01 tauqeerkhattak

@tauqeerkhattak can you clarify what is wrong with this screenshot?

xvrh avatar Jan 12 '23 18:01 xvrh

I am giving the backgroundColor property of Scaffold to black, but after using Lottie.asset(), it turns the whole background to white as seen in the screenshot.

tauqeerkhattak avatar Jan 13 '23 06:01 tauqeerkhattak