Home
Sign Up
Sign In
Advertisement
V2EX
›
Flutter
getx 列表更新问题,没有生效
Rrrrrr
·
Nov 4, 2022
· 2452 views
This topic created in 1313 days ago, the information mentioned may be changed or developed.
大佬们,帮我看看。
列表增加可以更新,某一项改变,就不会更新 UI
https://flutlab.io/sandbox/d8d55775-efbb-4cc6-b43e-8732ec2cc522
getx
列表
大佬
生效
2 replies
1
lh900519
Nov 4, 2022
void changePerson(int index, String name) {
userslist[index].name = name;
userslist.refresh();
}
2
Rrrrrr
OP
Nov 4, 2022 via iPhone
我也是找到这个,不知道 refresh 开销大不大?
@
lh900519
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
2616 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms ·
UTC 15:58
·
PVG 23:58
·
LAX 08:58
·
JFK 11:58
♥ Do have faith in what you're doing.
❯