mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fixes: #48225 Fixes: #73026 Fixes: #62848 After some research, I found that the issue might simply be that our animation curve is too steep, causing the animation to continue while the page visually appears very close to popping. This PR modifies the animation curve and duration after the drag gesture is released (iOS native animation duration is not related to swipe distance). I recorded a video comparing the curves. From top to bottom, the video shows the iOS native curve, the curve modified by this PR, and the original curve. The animation duration is slowed down by 10 times. 1/2 https://github.com/user-attachments/assets/77d0a782-b56d-431b-b925-8ff4e825c14a 1/4 https://github.com/user-attachments/assets/a4c50219-e86d-4cce-8a92-b266eb6260a8 forward 1/2 https://github.com/user-attachments/assets/067fffc2-203b-4686-ba4c-3b61a2c98cf8 forward 1/4 https://github.com/user-attachments/assets/c1ae938f-76ab-42f8-a832-d2d0e6c0758d