You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+1. It seems any call to setState that triggers constructing a new JoystickView widget makes it return to the (0, 0) position. E.g., I set a timer that calls setState every 100 milliseconds. Then it works for those 100 milliseconds, then when the setState call is triggered and the parent widget is rebuilt, the JoystickView gets back to (0, 0).
Hey,
Is there a way to call setState in the onDirecitonChanged callback or is there another way to do it ?
Thanks :)
The text was updated successfully, but these errors were encountered: