rive-app / rive-flutter

Flutter runtime for Rive
https://rive.app
MIT License
1.22k stars 191 forks source link

[Bug] State machine causes Flicker/glitch #427

Open developer-farhan opened 1 week ago

developer-farhan commented 1 week ago

<-- Thanks for using Rive!

If something isn't working like you expected, please:

If you think you found a bug or if you can't find what you're looking for in our docs, fill out the template below.

-->

Description

State machine animation causes glitch at the end of the state machine animation but if I use animation then it does not cause the glitch

Steps To Reproduce

Steps to reproduce the behavior:

  1. create animation with state machine
  2. use it in flutter

Device & Versions (please complete the following information)

Bug Video

https://github.com/user-attachments/assets/901a9620-2653-4678-991c-fb1d3c7b62df

HayesGordon commented 1 week ago

@developer-farhan, it might be that you're adding the State Machine Controller twice. Could you please share the full widget code, and I can take a look.

developer-farhan commented 1 week ago

@developer-farhan, it might be that you're adding the State Machine Controller twice. Could you please share the full widget code, and I can take a look.

Hi thank you for your response and time. The code in video is the total code previously I used a simple starless widget without any controller and I had the same issue could you look into it please

HayesGordon commented 1 week ago

The code in the video does not show the controller you made.

If you can share the .rev/.riv file I can take a look. If you cannot share that publicly please reach out to our private support and mention this issue: https://rive.atlassian.net/servicedesk/customer/portals