ListView.builder not rendering all elements

256 views
Skip to first unread message

Anna-Maria Parandiy

unread,
Feb 5, 2021, 11:13:02 AM2/5/21
to Flutter Development (flutter-dev)
Hi guys,
    I'm trying to create a list of widgets from a list of strings which is passed dynamically(can have different length) using ListView.builder. When the listView is rebuild from list with bigger length than it was before(for example, it had 3 elements, now has 5), elements with index bigger than the last index of previous list are not rendered (in this case 4th and 5th elements) and I get an error.
    Any ideas how to fix it?

Screenshot 2021-02-05 at 17.53.30.png
Screenshot 2021-02-05 at 18.07.05.png

Suzuki Tomohiro

unread,
Feb 5, 2021, 11:50:01 AM2/5/21
to Flutter Development (flutter-dev)
Null check operator used in null value. What’s the code that complains about this? The stacktrace tells the location.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/9c2a6b8b-a8bc-4e6c-8f30-1b31d0a4de11n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages