Skip to content
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

1.2.3 版本下拉刷新报错 #24

Closed
Zhengyangma opened this issue Feb 6, 2019 · 7 comments
Closed

1.2.3 版本下拉刷新报错 #24

Zhengyangma opened this issue Feb 6, 2019 · 7 comments

Comments

@Zhengyangma
Copy link

错误信息:trying to call updateHeight() of null

@xuelongqy
Copy link
Owner

能说一下,在什么情况下发生的错误吗?或者贴上使用示例的代码

@Zhengyangma
Copy link
Author

onRefresh的代码和loadMore回调的代码是一样的。
升上1.2.3后loadmore就报错了(onRefresh 没有问题),我现在用的是降过版本的1.1.0。
代码没有变动过,但loadmore的时候不报updateHeight()的错误。

EasyRefresh( refreshHeader: ClassicsHeader(
bgColor: Colors.lightBlue[700],
key: widget.erHeaderKey,
),
refreshFooter: ClassicsFooter(
bgColor: Colors.lightBlue[700],
key: widget.erFooterKey,
noMoreText: 'Finished',
),
onRefresh: () async { await loadMoreList();
return; },
loadMore: () async {
await loadMoreList();
return;
}
)`

@Zhengyangma
Copy link
Author

Zhengyangma commented Feb 15, 2019

我说错了,应该是上拉之后松开手,触发读取更多的回调函数就会报错。
下拉刷新没有问题

@xuelongqy
Copy link
Owner

那可能是flutter版本的问题,有时间我研究一下

@xuelongqy
Copy link
Owner

我试了flutter 1.2.1没有问题。Demo运行报错吗?能给我一个简单的示例吗,我找找问题

@Zhengyangma
Copy link
Author

我试了flutter 1.2.1没有问题。Demo运行报错吗?能给我一个简单的示例吗,我找找问题

我用的是CustomScrollView, 也许和新的那位同学的PR有关,你要不看下那个PR。

代码不太方便给示例。 Sorry。= =

@xuelongqy
Copy link
Owner

1.2.5已解决

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

2 participants