Reputation: 2352
I have a build method inside a stateful widget which is being called but the List item is not getting updated. I have even tried providing a unique key but that didn't work out. Though the widget gets updated when i scroll the list. The listitem is a separate stateful widget.
Upvotes: 0
Views: 60
Reputation: 111
Without a little piece of code we can't help properly.
One situation could be that you're defining the list inside build method, if you're using an Stateful Widget you should declare in State, then the changes would be correctly.
Upvotes: 1