peng8350 / flutter_pulltorefresh

a widget provided to the flutter scroll component drop-down refresh and pull up load.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

refreshController.position.addListener not working after pull to refresh

shungz89 opened this issue · comments

After pull to refresh has completed, whenever the subsequent scrolling, pull to refresh scolling is not able to be detected anymore.

Whatever that runs in the function (){} is not working

I have the same issue and couldn't figure out the solution

commented

I have the same issue whenever I pull refresh on an empty list

I also have the same issue

You may need to check where your scroll/refresh controller is being initialized. If it's rebuilding based on a state change, the widget loses track of which one to listen to and causes it to stop responding to normal scrolls. I had a similar issue a while back and noticed my widget was using a stale version of the controller and wouldn't trigger my .addListener functions.