Hello I’m working now with ModalBottomSheet layout...
# compose
o
Hello I’m working now with ModalBottomSheet layout + accompanist-navigation-material By requirements, I don’t need the HalfExpanded state. Will it be possible to disable HalfExpanded state in nearest future?
4
i
You'll need to star https://issuetracker.google.com/issues/186669820 to track the issue on the Compose side first. Once that's in, we'd be able to use that in Accompanist as per https://github.com/google/accompanist/issues/657
o
@Ian Lake Done Thanks!
d
You can achieve that by modifying
confirmStateChange
Copy code
val sheetState = rememberModalBottomSheetState(
            initialValue = ModalBottomSheetValue.Hidden,
            confirmStateChange = { stateValue ->
                stateValue != ModalBottomSheetValue.HalfExpanded
            }
        )
o
@divid3d Thank you that works But only when manually swiping when navigating to sheet destination it still shows half open….