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

lottie animation gets clipped on web (Android chrome and iOS Safari)

Open HosseinYousefi opened this issue 4 years ago • 5 comments

How it looks like in web:

2021-02-17 11 22 00

How it should look like: Screenshot 2021-02-17 at 11 19 34

Any ideas on why this is happening?

HosseinYousefi avatar Feb 17 '21 10:02 HosseinYousefi

Can you share the json file so I can have look?

xvrh avatar Feb 22 '21 20:02 xvrh

@xvrh sure, here's the one from the picture: identi.json.zip

HosseinYousefi avatar Feb 22 '21 20:02 HosseinYousefi

Run this when building your project: flutter build web --web-renderer canvaskit You need to specify what renderer to use. It seems that the html renderer, which is used for mobile by default, cannot handle Lottie files for now.

lemomar avatar May 04 '21 17:05 lemomar

Same problem。 Using canvaskit will leading to Noto font related problems. And also some device like iPad4 does not support WebAssembly, causing canvaskit renderer not working

hyiso avatar Jun 16 '21 11:06 hyiso

I am seeing this too, basically Flutter Mobile Web is not able to render lottie files, Flutter web works fine.

ahetawal-p avatar Jan 09 '22 17:01 ahetawal-p