kotlinforandroid
07/11/2022, 4:07 PMModalBottomSheetLayout
. The problem I am facing is that the BottomSheets also draw under the statusbar. It looks weird when the sheet is not fully expanded since the sheet has a lot of padding visible at the top. How can I prevent this?Tristan Hamilton
08/09/2022, 11:38 AMLaunchedEffect(modalBottomSheetState.targetValue) {
if (modalBottomSheetState.targetValue == ModalBottomSheetValue.Hidden) {
systemUiController.setStatusBarColor(defaultStatusBarColor)
} else {
systemUiController.setStatusBarColor(scrimColor)
}
}