Skip to content

where is the equivalent of onInit for v. 0.14.0 #535

@JgomesAT

Description

@JgomesAT

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; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions