Hi, I am using material3 ModalBottomSheet. If I launching it I use ```AnimatedVisibility(visible = s...
y
Hi, I am using material3 ModalBottomSheet. If I launching it I use
Copy code
AnimatedVisibility(visible = sheetState.isVisible) {
    ModalBottomSheet(
But it is not animated. It just flash. If I set sheetState.isVisible = false or pull down it is nicely animated. What I am doing wrong? What I am missing? Thanks folks! 🙏🏻 ✏️
c
t
I use the following and get animated opens:
Copy code
ModalBottomSheet(
   onDismissRequest = closeWith {}, sheetState = SheetState(skipPartiallyExpanded = true)
)
y
The example seems to be ok. I have the same implementation. The problem is somewhere else 😄 Thanks guys! 😄 🙏🏻
how does it happen 😄 I had almost the same implementation … I use state for hide and show sheetState.show() not
Copy code
scope.launch {
    openBottomSheet = !openBottomSheet
}
😄 pretty stupid my fault. Once again thanks @Travis Griggs and @Colton Idle 🙏🏻
106 Views