Closed Arepeel closed 2 years ago
@Arepeel can you try with forcing the canvaskit (skia) renderer https://docs.flutter.dev/development/platform-integration/web/renderers
flutter build web --web-renderer canvaskit
There are 2 renderers: canvaskit & html. By default Flutter will use the html renderer on mobile browser. But html renderer has some missing features which make it unsuitable for Lottie.
@xvrh Hi, tested with canvas kit renderer and working as expected. Thank you very much!
For people who want are having the same problem, can also include
window.flutterWebRenderer = "canvaskit";
insideindex.html
inside before your main.dart.js
https://docs.flutter.dev/development/platform-integration/web/renderers#runtime-configuration
Describe the bug Using flutter lottie package 1.4.3. The animation shows black box on IOS safari browser for flutter web.
What version of Lottie did you test this on? lottie 1.4.3
What version of Android did you test this on? IOS 15.5 IPhone 12 Pro
Steps To Reproduce
Reproducable code sample
Flutter Doctor
Gif Animation
As you can see, the issue happen only on lottie package, lottie_player package(above) renders correctly.