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
Sometimes, I want to do stuff after the local heroes are done animating.
Current flow is that I change the inflightbuilder to add False to an array, whenever a local hero starts animating, and to add True to the same array when the status is animationStatus == completed. Whenever the number of True == number of False, I do what I want to do next.
Does it make sense for the LocalHeroController to provide a callback to do, I guess that would be way more efficient than a bunch of setState commands?
The text was updated successfully, but these errors were encountered:
@FrankDomburg created a PR for this, the callback is slightly delayed by about 300 milliseconds but works great otherwise, but looking at the other PRs that havent been merged it may be better to create a new package and just link back to this
Sometimes, I want to do stuff after the local heroes are done animating.
Current flow is that I change the inflightbuilder to add False to an array, whenever a local hero starts animating, and to add True to the same array when the status is animationStatus == completed. Whenever the number of True == number of False, I do what I want to do next.
Does it make sense for the LocalHeroController to provide a callback to do, I guess that would be way more efficient than a bunch of setState commands?
The text was updated successfully, but these errors were encountered: