rive-flutter icon indicating copy to clipboard operation
rive-flutter copied to clipboard

artboard.defaultStateMachine & artboard.defaultStateMachineId are empty

Open asaworld opened this issue 1 year ago • 0 comments

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 avatar Oct 02 '24 19:10 asaworld