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

NoSuchMethodError (NoSuchMethodError: The setter 'value=' was called on null. #173

Closed ahde46 closed 4 years ago

ahde46 commented 4 years ago

Hi, I have a pet flare with several animations and i want the pet only active in one single animation (e.g sleeping, idle..). I created a class that extends the FlareControls and trying use the onCompleted(String name) function to loop the active animation. But i received an error message as the image below.. Any help is appreciated..

Flare version: flare_flutter: ^1.6.2 Flare File: https://www.2dimensions.com/a/siewhui46/files/flare/dog/preview Flutter Version: Channel stable, v1.7.8+hotfix.4

image

ahde46 commented 4 years ago

little addition information.

image

image

ahde46 commented 4 years ago

I set the ValueNotifier isActive = ValueNotifier(true) and solved the issue.