Skip to content

State machine animation does not work with Impeller on android #456

@ductranit

Description

@ductranit

Description

I have the trouble that the state machine (bool value) animation isn't working on android device with impeller enabled.
It works fine for ios or when I disable impeller on android like this:

<meta-data
    android:name="io.flutter.embedding.android.EnableImpeller"
    android:value="false" />

Steps To Reproduce

  • Play animation with state machine code:
StateMachineController mouthController = initController();

final inputs = mouthController.inputs;
for (final input in inputs) {
     // play mouth animation
      if (['FV', 'ST', 'QU', 'A', 'O', 'E'].containts(input.name)) {
        input.value = true;
       break;
     }
}
  • Enable Impeller

Source .riv/.rev file

intro.zip

Expected behavior

  • The state machine should work with impeller

Screenshots

Device & Versions

  • Device: android pixel 8a
  • OS: Android SDK API Level 35
  • Rive version: 0.13.20
  • Flutter Version:
Flutter 3.29.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 35c388afb5 (3 weeks ago) • 2025-02-10 12:48:41 -0800
Engine • revision f73bfc4522
Tools • Dart 3.7.0 • DevTools 2.42.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions