Reputation: 1164
Situation:
Future Builder
into a Listview.builder
with a List Tile like so:
SetState()
.THE PROBLEM Some tiles, like the participants tile needs to load pictures and some other things that are time intensive. So even if I just change the location and update the list, everything reloads, consuming resources and taking too much time to load a simple string.
Is it possible to reload only a certain list tile? Would you use another widget instead of ListView.builder? Other logic? Any help is appreciated.
The marked answer is correct. I was using future builder and that was forcing me to reload all data always. By using different Streams with Streambuilder I am able to change data on database and it automatically changes on the UI, without updating the state! Magic.
Upvotes: 0
Views: 916
Reputation: 2792
base on what i notices, Future Builder
is the problem, Future builder rebuild the whole widget in the ListView.builder. in your case use StreamBuilder
and you see the changes you what...
Upvotes: 2