Roman Polach
jossiwolf
LaunchedEffect(sheetState) { with(sheetState) { val isOpening = value == ModalBottomSheetValue.Hidden && targetValue == ModalBottomSheetValue.HalfExpanded val isClosing = value == ModalBottomSheetValue.Expanded && targetValue == ModalBottomSheetValue.HalfExpanded when { isOpening -> animateTo(ModalBottomSheetValue.Expanded) isClosing -> animateTo(ModalBottomSheetValue.Hidden) } } }
A modern programming language that makes developers happier.