-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Animation breaks in web, but works in ios/android #250
Comments
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: 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? |
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:
But the photos I received from the server in my project had trouble displaying.
|
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:
logo.flr.zip
or can be found here https://rive.app/a/BrianChristensen/files/flare/logo
Error message
The last error message just gets repeated until the project is stopped.
The text was updated successfully, but these errors were encountered: