-
Notifications
You must be signed in to change notification settings - Fork 499
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
tab点击切换时会并行提交多个请求 #14
Comments
这不是flutter框架tabview的预加载机制么? 这样打开第二个页面就不需要等待 .类似android的 viewpager. |
但是我看到,切换到中间的tab,还是会请求一遍 |
你仔细看下tab在切换动画的过程. 开启slow animation模式,或者录个慢动作视频 所以在request后,我会在 @override
void notifyListeners() {
if (!_disposed) {
super.notifyListeners();
}
} 如果你觉得这个问题对你有困扰,可以在request前进行判断 |
谢谢您的答复, |
这个目前是flutter的bug.可以参考下这个issues |
首先感谢大大的贡献给我提供很大的帮助!
页面的TabBar,当点击间隔的tab时,会出现将间隔的tab也一起请求。
比如间隔两个tab,那么就会携带两个tab的request请求
The text was updated successfully, but these errors were encountered: