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

[enhancement] trigger onLoad automatically when scroll is in bottom without extra hold gesture #716

Closed sed1ka closed 1 year ago

sed1ka commented 1 year ago

The package is awesome, I just realized that in order to trigger onLoad the user has to do an additional scroll gesture (hold + scroll). I think for the user experience it would be nice if the onLoad could be triggered automatically when the scroll position is already at the bottom (with the condition that the Footeris also shown automatically without any additional gestures). hope there is an option for this in the future

or maybe I missed something for this option? because I've been diving in the code examples but couldn't figure out how

xuelongqy commented 1 year ago

Try setting the infiniteOffset parameter of the indicator, maybe it can help you

sed1ka commented 1 year ago

Set the infiniteOffset parameters and set the infiniteHitOver to false is the solution