Open BrainRayChristensen opened 4 years ago
As a side note, if this isn't an issue with your library, it would be awesome if you could point me towards where you think the problem is. And if there is anything else I can post to help with debugging, please let me know.
Thanks for reporting this. There are two issues here but the fundamental one is that Flutter Web does not support image shaders for triangle meshes, which is how Flare renders images. Unfortunately, that means that Flare images won't work in Flutter Web right now. What we can do on our side is disable them from drawing so you don't get exceptions.
Here's the line in the Flutter engine: https://github.com/flutter/engine/blob/56fe6d2550bb5b4ffb7c8ecff4acbda5bb6ed0c7/lib/web_ui/lib/src/engine/bitmap_canvas.dart#L745
Unfortunately this also won't work with Flutter Web with the CanvasKit backend as that currently doesn't support decoding images for the image shader: https://github.com/flutter/engine/pull/17984/files
We're working closely with the Flutter team to try to resolve these. We'll keep this issue open and report as progress is made.
In the meantime, do you know if there are there specific animations that cause this error, or is it all?
In the meantime, do you know if there are there specific animations that cause this error, or is it all?
As i wrote before — simplify your animations and you are good to go in Flutter Web, even in it’s actual state. Don’t use trim paths, blur, shadows, opacity in gradient animations etc. I have one pretty complex animation without all that things, additionally with controller on mouse hover events — everything runs butter-smooth, on all platforms including web. If you can tolerate this certain visual aesthetic then you are good to go in web until Rive team will fix remaining flaws.
Only writing to receive updates on the progress of this issue...
Following
Bump!
Any update on this?. Look like almost a year to resolve this?
I had the same Issue: I used the following command to run:
flutter run -d chrome --web-renderer canvaskit
But the photos I received from the server in my project had trouble displaying. So I converted all the photos (png) in the flr file to SVG, re-created the flr file, and this time I run the project with the following command and it worked fine.
flutter run -d chrome --web-renderer html
I've been digging for awhile to find the root of the problem and after reporting this issue in a couple different libraries I think I've finally traced the problem back to here (maybe).
Steps to recreate:
Error message
The last error message just gets repeated until the project is stopped.