Travis Griggs
09/22/2023, 7:18 PMIf you need to display a large number of items (or a list of an unknown length), using a layout such asThis seems a bit misleading to me. It focuses primarily on size, on screen rendering, optimization. But it seems that regardless of size, the real concern is if your list is dynamically sized and may be dynamically adjusted. I say this, becausecan cause performance issues, since all the items will be composed and laid out whether or not they are visible.Column
Modifier.animateItemPlacement
is only available in lazy scopes. Even if you have 10 short items in a totally visible column, if you're going to be removing, inserting, reordering, animating those updates is a much better user experience. Is this line of reasoning missing something?dewildte
09/22/2023, 7:22 PMmyanmarking
09/22/2023, 7:35 PMTravis Griggs
09/22/2023, 7:48 PMdewildte
09/22/2023, 8:32 PMRendering will be fasterIs that noticeable to a Human?
myanmarking
09/22/2023, 8:36 PMdewildte
09/22/2023, 8:44 PMmyanmarking
09/22/2023, 8:46 PMdewildte
09/22/2023, 8:49 PMFrancesc
09/22/2023, 8:49 PMdewildte
09/22/2023, 8:50 PMFrancesc
09/22/2023, 8:51 PMmyanmarking
09/22/2023, 8:52 PMFrancesc
09/22/2023, 8:53 PMdewildte
09/22/2023, 8:53 PM…have all lists be Lazy…I see that is of course wrong. Please let me have the opportunity to correct it with long and non nested dynamic lists.
Francesc
09/22/2023, 8:54 PMdewildte
09/22/2023, 8:54 PMmyanmarking
09/22/2023, 8:56 PMTravis Griggs
09/22/2023, 9:04 PMFrancesc
09/22/2023, 9:15 PMAnimatedContent
Albert Chang
09/23/2023, 3:54 AMit requires 2 passesThis is not true.
SubcomposeLayout
is built to solve the exact case that would otherwise need two layout passes without it.