Skip to content
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

Flare for flutter_web #156

Open
asjqkkkk opened this issue Sep 19, 2019 · 11 comments
Open

Flare for flutter_web #156

asjqkkkk opened this issue Sep 19, 2019 · 11 comments

Comments

@asjqkkkk
Copy link

Is there any plan to support Flutter for web? 😊

@MSchmack
Copy link

With the latest master build of flutter you can display FlareActors with flutter for web.

Color changing and fading seems to run with decent or great performance. Drawing something isn't quite animated and just jumps from 0 to 100 after the delay.

I got a github page I'm using to debug and try flutter for web, it has a flare tic tac toe field which showcases the issue pretty well... among other issues ..uff.

@JHBitencourt
Copy link

It is not fully supported though. Some animations doesn't work properly.
+1 to the issue

@racknoris
Copy link

@JHBitencourt is there something in common for those animations that don't work properly?

@MathiasYde
Copy link

@racknoris With my short time of experimenting with it, I can say that masked objects usually don't render well in my experience. (See examples)
image
image
Rive link: https://rive.app/a/mathiasyde/files/flare/phone-feed-refresh

@racknoris
Copy link

@MathiasYde Were you able to find a workaround?

@MathiasYde
Copy link

@racknoris Unfortunately not, my speculation is that Rive has updated some data structure on their website, but not their runtime yet. I can't know for sure.

@luigi-rosso
Copy link
Contributor

There are some Flutter features that haven't yet been ported to the web runtime, one of them is PathMetrics which we use for trim paths (one of the features used by the linked file). There's an issue in the Flutter repo tracking this: flutter/flutter#41395

@racknoris
Copy link

@MathiasYde sorry for the late response- Thank you very much for the detailed answer!

@crystaldonut
Copy link

Just tested some Rive files on the flutter master channel, pathmetrics is working :)

@MathiasYde
Copy link

@crystaldonut Even for web?

@MSchmack
Copy link

MSchmack commented Mar 3, 2020

Gave it a try and updated my trial web app. Some seem to run smooth while some.. are funny.

The X on the Tic Tac Toe field draws smooth, the circle draws something odd first then pops into a circle (Animation is supposed to just draw a circle).

https://mschmack.github.io/#/

msedge_mYHk3FIFyK

msedge_bCNnUCvE7X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants