Ask Your Question
0

What is the problem with using Listview.builder as a child of ScrollView, ListView or another Listview.builder in Flutter where it renders all views?

asked 2021-07-30 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-12-21 19:00:00 +0000

qstack gravatar image

The problem with using a ListView.builder as a child of a ScrollView, ListView or another ListView.builder in Flutter is that it can lead to rendering all the views in the list, even if they are not currently visible on the screen. This can cause performance issues and slow down the app. Instead, it is recommended to use a single ListView.builder or use the Sliver family widgets which are designed to work together efficiently.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-07-30 11:00:00 +0000

Seen: 10 times

Last updated: Dec 21 '22