Why does my animatedWidth variable doesn’t change with the function animateTo?
I have an animation it’s a green rectangle that grows in length inside a white outlined rectangle. It was working fine before I adjusted the layout. Now the green rectangle simply doesn’t grow. If I change the animatedWidth to 10f the rectangle appears. But it is supposed to start from zero and grow in lenght.
The animation is called from a button which turns isVisible true which shows the composable. This part works, because I can see the white rectangle