mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-08-06 16:40:27 +08:00
Adds animation and machine selection in RiveAnimation; getters on artboards for linaer animations and state machines
This commit is contained in:
@ -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);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user