Eko Prasetyo
12/21/2022, 8:18 AMfloatingActionButton = {
AnimatedVisibility(
visible = !sheetState.isVisible,
enter = fadeIn(),
exit = fadeOut(),
) {
FloatingActionButton(
onClick = {
...
}
) {
Icon(imageVector = Icons.Rounded.Edit, contentDescription = null)
}
}
},
I'm trying to add visibility animation using AnimatedVisibility
on my FAB, but when the animation is running, the FAB shadow change into weird box shape. How can I fix this? Thanks in advance.Filip Wiesner
12/21/2022, 10:32 AMAnimatedContent
and ContentTransform
with SizeTransform(clip = false)
.Eko Prasetyo
12/21/2022, 12:38 PMFilip Wiesner
12/21/2022, 2:43 PMDoris Liu
12/22/2022, 5:18 PMNader Jawad
12/22/2022, 7:09 PM