Is there a way to stick a `stickyHeader` not to to...
# compose
r
Is there a way to stick a
stickyHeader
not to top of
LazyColumn
but to top with some offset?
d
You could add a
Modifier.offset(....)
.
f
I think that would not move the actual layout and
LazyColumn
would remove the item from composition before the actual visible item would disappear from view.
Wouldn't a top padding to the sticky header be enough?
r
I’m not sure what do you mean as
stickyHeader
doesn’t have modifier parameter
f
You can put it on the
Composable
content inside the sticky header. It's the same as with regular
item { }
r
yeah, but that way it would also have a paddin while it’s not sticked and that I don’t want
🙁 1