mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-11-09 17:47:43 +08:00
feat: Flutter get component predicate
Diffs= 9abd6ee16 feat: Flutter get component predicate (#7388) 8486c3445 Get rid of MetricsPath. (#7371) Co-authored-by: Anurag Devanapally <anurag.devanapally@aofl.com> Co-authored-by: Gordon <pggordonhayes@gmail.com>
This commit is contained in:
@ -27,7 +27,7 @@ class _ExampleStateMachineState extends State<ExampleStateMachine> {
|
||||
|
||||
// The artboard is the root of the animation and gets drawn in the
|
||||
// Rive widget.
|
||||
final artboard = riveFile.mainArtboard;
|
||||
final artboard = riveFile.mainArtboard.instance();
|
||||
var controller = StateMachineController.fromArtboard(artboard, 'Button');
|
||||
if (controller != null) {
|
||||
artboard.addController(controller);
|
||||
|
||||
Reference in New Issue
Block a user