mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
`StretchingOverscrollIndicator`'s controller does not have a minimum value for its animation duration. When the `OverscrollNotification`'s `velocity` is small enough (< `25`) the controller's `absorbImpact` method sets this animation duration to 0ms, making the animation appear frozen to the user. This PR sets a minimum animation duration of 50ms. Fixes #146277 | Before | After | | --- | --- | | <video src="https://github.com/flutter/flutter/assets/82336674/8761f14e-d5a5-4a39-b8e7-9e77433ce2c6" width=250px />| <video src="https://github.com/flutter/flutter/assets/82336674/57b38448-29fb-41ad-a947-d7cf1c160ca3" width=250px /> |