I have an animateDpAsState(..)
, whenever this animation is triggered it changes the Modifier.size(value)
of an Image(...)
thus causing recomposition.
Is there a way to skip composition phase for this specific scenario? Allowing an image to change its size?
I found the solution! To skip recomposition but still affect things around the layout, you can do it do it in layout phase, otherwise move it to Draw phase!
Apply this Modifier to the
Image(...)
modifier parameter.