当前位置:网站首页>Flutter can refresh data every time the interface comes in
Flutter can refresh data every time the interface comes in
2022-07-01 05:16:00 【Bright as water】
Preface
Recently do flutter When the project is , I want to refresh data every time I enter my interface , Found a good way to use , Let's share with you :
@override
Widget build(BuildContext context) {
return VisibilityDetector(
key: const Key('my-menu-key'),
onVisibilityChanged: (VisibilityInfo visibilityInfo) {
if (visibilityInfo.visibleFraction == 0.0) {
} else {
_getMemberInfo();
}
},
child: Scaffold(
backgroundColor: color_FFFFFFFF,
body: Container(
color: Colors.red,
),
),
);
}
}
The key is VisibilityDetector, Then judge whether it is displayed , You can achieve your own effect !
END.
边栏推荐
- [summer daily question] Luogu p5886 Hello, 2020!
- 云原生存储解决方案Rook-Ceph与Rainbond结合的实践
- 使用 Nocalhost 开发 Rainbond 上的微服务应用
- FileInputStream
- 【暑期每日一题】洛谷 P7222 [RC-04] 信息学竞赛
- FileInputStream
- [daily question in summer] Luogu p7222 [rc-04] informatics competition
- Leetcode1497- check whether array pairs can be divided by K - array - hash table - count
- Vmware workstation network card settings and three common network modes
- Use and principle of AQS related implementation classes
猜你喜欢
![[summer daily question] Luogu p5886 Hello, 2020!](/img/ac/4be05f80aab7fb766674e6e2d16fbc.png)
[summer daily question] Luogu p5886 Hello, 2020!

复制宝贝提示材质不能为空,如何解决?

LevelDB源码分析之LRU Cache

液压滑环的特点讲解
![[data recovery in North Asia] a data recovery case of raid crash caused by hard disk drop during data synchronization of hot spare disk of RAID5 disk array](/img/22/606ff1e8dad3d5896b32d2146b0477.jpg)
[data recovery in North Asia] a data recovery case of raid crash caused by hard disk drop during data synchronization of hot spare disk of RAID5 disk array

Mathematical knowledge: finding the number of divisors

Neural network convolution layer

Actual combat: gateway api-2022.2.13

Sqlplus connects using the instance name

在Rainbond中一键部署高可用 EMQX 集群
随机推荐
Explanation of characteristics of hydraulic slip ring
0xc000007b应用程序无法正常启动解决方案(亲测有效)
Oracle views the creation time of the tablespace in the database
Daily question -leetcode1175- permutation of prime numbers - Mathematics
Global and Chinese market for instant messaging security and compliance solutions 2022-2028: Research Report on technology, participants, trends, market size and share
How to hide browser network IP address and modify IP internet access?
点赞的云函数
Like cloud functions
AcWing 889. 01 sequence satisfying the condition (Cartland number)
Application and principle of ThreadPoolExecutor thread pool
FileOutPutStream
FileOutPutStream
Several methods of creating thread classes
【暑期每日一题】洛谷 P3742 umi的函数
Intelligent operation and maintenance: visual management system based on BIM Technology
How to meet the requirements of source code confidentiality and source code security management
Simple read / write verification of qdatastream
Unity drags and modifies scene camera parameters under the editor
Vmware workstation network card settings and three common network modes
Causes of short circuit of conductive slip ring and Countermeasures