Getting instancing working.

This commit is contained in:
Luigi Rosso
2021-05-28 18:08:04 -07:00
parent a832d55f07
commit e8d9f59947
61 changed files with 456 additions and 8 deletions

View File

@ -35,7 +35,7 @@ class _ExampleAnimationState extends State<ExampleAnimation> {
// The artboard is the root of the animation and gets drawn in the
// Rive widget.
final artboard = file.mainArtboard;
final artboard = file.mainArtboard.instance();
// Add a controller to play back a known animation on the main/default
// artboard. We store a reference to it so we can toggle playback.
artboard.addController(_controller = SimpleAnimation('idle'));