Hi All, Is it possible to add a header item into a...
# compose
n
Hi All, Is it possible to add a header item into a LazyColumnFor. So it appears once at the top of the List , but also scrolls with the list.
y
Just use a LazyColumn and iterate on your list manually
Wrap each item in a key bloc too
n
Ah ok, I think I see. Not sure what you mean by key bloc?
y
key(item){ }
From what I understand it's used when chaining the same composable in a loop, LazyColumnFor is using it
n
ok I’ll take a look at it some more , thanks for the quick reply 👍
n
Nice! thanks for pointing me to these samples. That looks to be the kinda thing I want to do. 😀
d
and what about a header which stays fixed and doesn’t scroll?