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
The function receives an animation, which can be used for efficient rebuilding of the transition inside the returned Widget. However, by adding a print statement inside the function, I've seen the function gets called on every frame of the animation, defeating the purpose of receiving the Animation object directly (receiving a double with its value ranging from 0 to 1 would do the same).
Can this behaviour be fixed so that the function gets called only once when building the transition?
The text was updated successfully, but these errors were encountered:
I'm coding a custom transition for a route by passing the transitionsBuilder argument to the CustomRoute constructor.
The definition of the RouteTransitionsBuilder is the following:
The function receives an animation, which can be used for efficient rebuilding of the transition inside the returned Widget. However, by adding a print statement inside the function, I've seen the function gets called on every frame of the animation, defeating the purpose of receiving the Animation object directly (receiving a double with its value ranging from 0 to 1 would do the same).
Can this behaviour be fixed so that the function gets called only once when building the transition?
The text was updated successfully, but these errors were encountered: