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

onLoad behavior like OnRefresh #734

Closed WMOH-DEV closed 1 year ago

WMOH-DEV commented 1 year ago

Hello,

I need to use EasyRefresh in my project to enable navigation between elements (books). I am using onRefresh to navigate to the previous element page, and onLoad to navigate to the next element page.

The onRefresh functionality works very well, and everything is okay. However, the onLoad behavior is not as desired. After scrolling down, the onLoad event triggers immediately. I want it to behave just like the onRefresh: ClassicHeader, when you reach the bottom and drag up and if released, it triggers the action; otherwise, it does nothing.

the header set to classicheader the footer set to classicfooter

Can you please help me configure the onLoad behavior to achieve the desired functionality?

xuelongqy commented 1 year ago

Set Footer.infiniteOffset = null

yfming93 commented 4 months ago

Set Footer.infiniteOffset = null

3Q. It`s work well for me .