Adds animation and machine selection in RiveAnimation; getters on artboards for linaer animations and state machines

This commit is contained in:
matt Sullivan
2021-06-10 12:51:52 -07:00
parent a22735177f
commit 05ceb34fa1
3 changed files with 46 additions and 7 deletions

View File

@ -33,4 +33,10 @@ void main() {
expect(artboard.animationByName('Animation 1') is LinearAnimationInstance,
true);
});
test('Linear animations can be retreived ffrom artboards', () {
final artboard = riveFile.mainArtboard;
expect(artboard.linearAnimations.toList().length, 2);
expect(artboard.stateMachines.toList().length, 1);
});
}