-
Notifications
You must be signed in to change notification settings - Fork 30.4k
[animations] PageTransitionSwitcher doesn't animate smoothly if reverse is true on Flutter 2.8.0 #95270
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: animationAnimation APIsAnimation APIsc: regressionIt was better in the past than it is nowIt was better in the past than it is nowengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 2.8Found to occur in 2.8Found to occur in 2.8found in release: 2.9Found to occur in 2.9Found to occur in 2.9frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work on
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: animationAnimation APIsAnimation APIsc: regressionIt was better in the past than it is nowIt was better in the past than it is nowengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 2.8Found to occur in 2.8Found to occur in 2.8found in release: 2.9Found to occur in 2.9Found to occur in 2.9frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work on
When I use PageTransitionSwitcher in Flutter with reverse flag true there is an bug in the exit animation. I'm using the newest version of animations package (2.0.2).
This bug is present on flutter version 2.8.0 but it was not on 2.5.3.
There is an video showing the comparison between the animation in the two versions. Note that the reverse animation (red to blue, in the 5s of video) of version 2.8.0 the red container overlaps the blue one until the animation is complete. In this example the bug doesn't seem to cause much trouble, but if the page as a lot of widgets and the two pages transitioning is very different the animation is really annoying.
2.8.0.mp4
2.5.3.mp4
Steps to Reproduce
flutter runon the sample belowCode sample