当前位置:网站首页>The shutter tabbar listener is called twice
The shutter tabbar listener is called twice
2022-06-26 09:25:00 【Eternity LAN】
Hard coding ! Reprint please indicate the source !
0. Preface
Flutter Of TabViewController, Does not lazy load views , After you create TabBarView From that moment on , All the interfaces are loaded all at once
So as an elegant programmer , How can this waste of performance be allowed !
Click and click TabController,Run The back is cool , Find out that things are not so simple
TabController Of Listener It was called twice !!!
1. resolvent
There are not many small problems , Add a judgment , Problem solving :
tabController.addListener(() {
// Key code
if (!tabController.indexIsChanging) {
print(tabController.index);
}
});
Flutter After all, it's still that Issue Four digit Flutter
The person who rewards is still the most beautiful one
边栏推荐
- 行为树 文件说明
- ThreadLocal
- How to handle the small program tabbar that does not support parameter transfer
- JSON file to XML file
- Creation and use of XSync synchronization script (taking debian10 cluster as an example)
- 计算领域高质量科技期刊分级目录
- "One week's work on Analog Electronics" - Basic amplification circuit
- 【Open5GS】Open5GS安装配置
- PHP extracts TXT text to store the domain name in JSON data
- Kubernetes cluster deployment (v1.23.5)
猜你喜欢
Master data management of scientific research institutes? Suppliers or customers? I am a correspondent
Pycharm occasionally encounters low disk space
Merrill Lynch data technology expert team | building a cloud native product system based on containers
Joint Noise-Tolerant Learning and Meta Camera Shift Adaptation for Unsupervised Person Re-ID
Phpcms V9 mall module (fix the Alipay interface Bug)
《一周搞定模电》-二极管
Behavior tree file description
Edge computing is the sinking and extension of cloud computing capabilities to the edge and user sides
Edit type information
【CVPR 2021】 Lifelong Person Re-Identification via Adaptive Knowledge Accumulation
随机推荐
行为树的基本概念及进阶
Practice of production control | dilemma on assembly rack
Lagrange multiplier method
External sorting and heap size knowledge
Analysis of ROS calculation diagram level
正则表达的学习
Practice is the fastest way to become a network engineer
Phpcms V9 background article list adds one click push to Baidu function
"One week to finish the model electricity" - 55 timer
《一周学习模电》-电容、三极管、场效应管
3大问题!Redis缓存异常及处理方案总结
Merrill Lynch data helps State Grid Hubei "golden eye" accurately identify abnormal power consumption
What is optimistic lock and what is pessimistic lock
教程1:Hello Behaviac
Unity WebGL发布无法运行问题
Edit type information
Joint Noise-Tolerant Learning and Meta Camera Shift Adaptation for Unsupervised Person Re-ID
Load other related resources or configurations (promise application of the applet) before loading the homepage of the applet
Collection object replication
Classified catalogue of high quality sci-tech periodicals in the field of computing