is there a way to add a header(like a `Text`) to t...
# compose
m
is there a way to add a header(like a
Text
) to the a
LazyVerticalGrid
?
c
Like a stickyHeader for a group of things in the grid?
1
m
actually not necessarily sticky I want to add a
Text
as a Header using
item {}
and add some items in grid arrangement
c
I see - I don’t think
LazyVerticalGrid
supports that super well. What I’ve done in the past is use
LazyColumn
then in the
items
function, draw a
Row
with <x> amount of items, and loop through that. And then use
item
to draw things before or after the group of items. The problem is you have to set up your data model to chunk items by <x>.
It’s Compose Desktop, but the APIs are the same for Android.