10000 上拉加载的bug · Issue #19 · peng8350/flutter_pulltorefresh · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

上拉加载的bug #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nanchaodong opened this issue Oct 23, 2018 · 7 comments
Closed

上拉加载的bug #19

nanchaodong opened this issue Oct 23, 2018 · 7 comments

Comments

@nanchaodong
Copy link

上拉加载网络请求数据回来后会多次触发上拉加载的网络请求

@cikichen
Copy link

同样遇到了

@peng8350
Copy link
Owner

具体描述一下在什么情况下会触发多次,关键代码,图片,log

@johanntony
Copy link

同样遇到了

@290125120
Copy link

通遇到,有人解决了吗

@290125120
Copy link

通遇到,有人解决了吗

给sendback加了个200毫秒延迟解决了···但不是长久办法呀

@peng8350 peng8350 added bug Something isn't working and removed bug Something isn't working labels Mar 27, 2019
@peng8350
Copy link
Owner

遇到这种情况,可以通过这种方法来解决

    SchedulerBinding.instance.addPostFrameCallback((_){
                    _refreshController.sendBack(false, RefreshStatus.idle);
     });

这段代码作用就是,等到下一次更新界面的时候,才通知更改指示器的状态为空闲。
之所以有这种问题,大概就是因为界面没被更新就修改指示器的状态造成的误判。

@peng8350
Copy link
Owner
peng8350 commented May 6, 2019

已修复!新版本直接调用即可,内部已经设置成等下一帧再更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
0