Assigned
Status Update
Comments
mo...@google.com <mo...@google.com>
ww...@gmail.com <ww...@gmail.com> #2
Hello, can you please attach a sample that reproduces your error?
No update yet.
Hello, can you please attach a sample that reproduces your error?
Description
Description:
Add rotation capabilities to Enter/Exit Transitions to be used with AnimatedContent, AnimatedVisibility.
Use Case:
Currently, AnimatedContent (and related) components that rely on Exit/Enter Transition objects can only animate alpha and size (with slide, scale, expand). There is no way to have the content rotate in any way when using the animation API, except with the basic Modifier.rotate + animateFloatAsState(), which doesn't work together with AnimatedContent/Visibility, which really limits what animations can be implemented using these components.
For example, a toggle button that swaps its icon (between a Sun and Moon, for example) by rotating + fading the icon currently cannot be implemented using AnimatedContent.