Hi, I am using material3 ModalBottomSheet. If I la...
# compose
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 πŸ™πŸ»
107 Views