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

rudolf.hladik

01/28/2022, 1:08 PM
Is there a way to stick a
stickyHeader
not to top of
LazyColumn
but to top with some offset?
d

Dominaezzz

01/28/2022, 1:32 PM
You could add a
Modifier.offset(....)
.
f

Filip Wiesner

01/28/2022, 2:05 PM
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

rudolf.hladik

01/28/2022, 2:26 PM
I’m not sure what do you mean as
stickyHeader
doesn’t have modifier parameter
f

Filip Wiesner

01/28/2022, 2:29 PM
You can put it on the
Composable
content inside the sticky header. It's the same as with regular
item { }
r

rudolf.hladik

01/28/2022, 2:36 PM
yeah, but that way it would also have a paddin while it’s not sticked and that I don’t want
🙁 1
2 Views