xuelongqy / flutter_easy_refresh

A flutter widget that provides pull-down refresh and pull-up load.
https://xuelongqy.github.io/flutter_easy_refresh/
MIT License
3.85k stars 630 forks source link

3.x 版本如何设置滑动到顶部添加回弹效果 #706

Closed steven000 closed 1 year ago

steven000 commented 1 year ago

2.x 版本快速滑动到顶部有回弹效果。

3.x 版本如何设置画的到顶部添加回弹效果呢?

scrollBehaviorBuilder: (physics) => ERScrollBehavior(BouncingScrollPhysics()), 确实有回弹了,但是下拉刷新的功能就没有了。

默认的physics是 class _ERScrollPhysics extends BouncingScrollPhysics 设计的时候就考虑到了支持弹簧效果,但是没有生效。

xuelongqy commented 1 year ago

试试hitOver = true

nxhung1610 commented 1 year ago

I use this but not working

try hitOver = true

any update for this one

xuelongqy commented 1 year ago

I use this but not working

try hitOver = true

any update for this one

If it is clamping, it will not take effect