2d-inc / Flare-Flutter

Load and get full control of your Rive files in a Flutter project using this library.
https://rive.app/
MIT License
2.55k stars 470 forks source link

Unable to display animation correctly from Rive 'Filip' fork by Jctoon #261

Open Kitlim opened 4 years ago

Kitlim commented 4 years ago

Hi there,

Does anyone experience the same problem as I did... I forked the Filip animation by JcToon and exported it without changing anything, first in Json format and second time in Binary format. I have also download a version from 2dimension websites (https://cdn.2dimensions.com/Filip.flr).

Somehow for the first two versions, ie. the Binary and Json version gave a garbled animation, whereas only the 2dimensoins file can be played properly.

I used the following code in flutter.

I am using flare_flutter ^2.0.3 package.


void main() => runApp(MyHomePage());

class MyHomePage extends StatefulWidget { @override MyHomePageState createState() => new MyHomePageState(); }

class _MyHomePageState extends State { @override Widget build(BuildContext context) { return new FlareActor("assets/Filip2.flr", alignment:Alignment.center, fit:BoxFit.contain, animation:"idle");

} }

Appreciate any help on this one.

umberto-sonnino commented 4 years ago

I've exported the file from here directly: https://rive.app/a/JuanCarlos/files/flare/filip and it works just fine. Can you share the link to your file on Rive?