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
希望可以开放部分参数 #27
Comments
这个设置下 |
pullBackDuration是回弹动画的时间 _kIndicatorSnapDuration是下拉后刷新状态下停留的时间 |
刷新状态多久。。跟 onrefresh 多久返回有关系 |
使用场景不同,我并不是刷新场景,我直接返回了,依然有停留时间。 |
200毫秒?? 你是啥场景??你着急就fork 改下。我并不清楚你这样做的目的 |
以上是我的使用场景。 当我下拉到最大距离后,放手,会有停留时间。 当我修改为, 就没有停留时间了。 所以我希望可以开放此参数。 |
那你完全可以不用这个组件呢。。你这个动作都没有刷新效果,你用ios 的物理效果就行了。也没有任何状态可言,把产品打一顿吧 |
NestedScrollView-TabBarView SliverAppBar-FlexibleSpaceBar-zoomBackground 效果失效 所以很尴尬 |
我的意思是。你可以自己写。这是刷新组件。不是动画组件 |
我明白您的意思。 单纯以刷新组件来说,onRefresh的返回应该是可以控制停留时长的吧。 如果以测试的角度来看,这会是个BUG。App停留了150毫秒后调用onRefresh,访问后台50毫秒返回数据,总停留了200毫秒,App端不看源码的话会很纳闷,怎么会停留这么长时间。 您觉得呢? |
希望可以开放此参数
// When the scroll ends, the duration of the refresh indicator's animation
// to the RefreshIndicator's displacement.
const Duration _kIndicatorSnapDuration = Duration(milliseconds: 150);
有些需求只是下拉放大图片。
现在回弹需要等待该时长。
很怪
The text was updated successfully, but these errors were encountered: