https://kotlinlang.org logo
#compose
Title
# compose
c

Colton Idle

01/04/2022, 4:38 AM
Just want to say great job to the compose team again for their dedication to delivering a great api. A case I came across tonight. I have an app with a really complicated scrollable column. Lots of individual items, and then between those individual items I have your typical list of repeating elements that is done with a forEachIndexed. I specifically have been trying not to use LazyColumn because I've been trying to see where a regular column starts to break down, and so now today I finally converted my super complex column to a LazyColumn, and I basically just wrapped all individual elements with an
item
and replace my forEachIndexed loop with a
itemsIndexed
and I didn't even have to change my lambda args! It just works. Such a breeze to convert a non-lazy column into a lazy one. Awesome job!
K 9
🦜 4
2
🎉 12