is there any padding equivalent, optimised with gr...
# compose
m
is there any padding equivalent, optimised with graphics layer =?
a
I don't understand the question. What problem are you looking to solve?
m
padding changing according to scrollState. I can use padding just fine. But when i do this kinda of animations, always try to find out if there is any equivalent with graphics layer, that only changes the draw and not the measure
i always overthink with compose 😛 thinking about it, padding affects measure, so it most certainly cannot do this
a
are you attempting to avoid recomposition for dynamic padding changes at layout time?
m
imagine a Column with a card with horizontal padding, that is sticky and loses padding when on top. that kind of animation
a
Modifier.layout {}
is probably what you want if you want to get fancy here
m
gonna give it a try. thanks
👍 1