Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

artboard.defaultStateMachine & artboard.defaultStateMachineId are empty #424

Open
asaworld opened this issue Oct 2, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@asaworld
Copy link

asaworld commented Oct 2, 2024

Description

Using Windows Rive app Beta 0.8.1928 and flutter rive 0.13.14. I load the .riv file using:

RiveAnimation.direct(
      imported_file.riv
      artboard: "artboard",
      onInit: (Artboard artboard) {
            _logger.info(artboard.defaultStateMachine); // null
            _logger.info(artboard.defaultStateMachineId); // 0
      }
    );

Even though the default (any only) statemachine for this artboard is checked as default in the UI.
image
I can easily load this state machine using

StateMachineController.fromArtboard(artboard, "Default");

Device & Versions (please complete the following information)

Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (3 weeks ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3
@asaworld asaworld added the bug Something isn't working label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant