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 468 forks source link

Export Binary Or Json - Flutter #199

Open mano290 opened 4 years ago

mano290 commented 4 years ago

Hello guys,

Which format is better to export? Binary or Json for app in Flutter..

2019-12-03-00-15-www 2dimensions com

Thank

umberto-sonnino commented 4 years ago

Either will work with Flutter. It depends on your needs, Binary data is more compact but mostly unreadable. If you want to take a look at the Flare format and make small adjustments like changing a color, use JSON.

mano290 commented 4 years ago

Either will work with Flutter. It depends on your needs, Binary data is more compact but mostly unreadable. If you want to take a look at the Flare format and make small adjustments like changing a color, use JSON.

Thanks for answering...

But my question is about performance, is binary better than JSON? Is reading faster? Or do they both perform the same?

samster1990 commented 4 years ago

Hi, I have one question related to the same export. Is there any loss of style when you export in Binary. One of my design layers which had blur style got exported as a flat layer in binary. Any idea what might be the reason? And is there any way to control the styling of the layers in flutter