-
Notifications
You must be signed in to change notification settings - Fork 222
Closed
Labels
Description
for migration form rive 0.13 to 0.14 how i cacn cahnge this RiveAnimation.asset( Rives.riveAnimation, stateMachines: const <String>['State Machine 1'], onInit: viewModel.onInit, fit: BoxFit.fitHeight, ),
the function onInit?, I can't fine any doc in the migration guide
my init is laike this:
void onInit(Artboard art) { final StateMachine ctrl = StateMachine.fromArtboard(art, 'State Machine 1')!; ctrl.isActive = false; art.addController(ctrl); _controller = ctrl; _jump01 = _controller.findInput<bool>('Jump01')! as TriggerInput; _jump02 = _controller.findInput<bool>('Jump02')! as TriggerInput; }