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

Fix provider null return value #216

Open yuwen-yan opened 4 years ago

yuwen-yan commented 4 years ago

Follow-up PR for https://github.com/2d-inc/Flare-Flutter/issues/202

yuwen-yan commented 4 years ago

@luigi-rosso it's about error handling, AFAIK, there are two ways to fail:

I was thinking that we should suppress the exception for invalid ByteData, but after a second thought, I think it's also ok to raise it, WDYT? So I'm going to hold this PR for now..