Marco Pierucci
09/04/2023, 3:09 PMval bottomSheetScaffoldState = rememberBottomSheetScaffoldState(
            bottomSheetState =
            rememberStandardBottomSheetState(
                initialValue = SheetValue.Hidden,
                skipHiddenState = false
            )
        )
       BottomSheetScaffold(
            scaffoldState = bottomSheetScaffoldState,
            sheetPeekHeight = INFO_SHEET_PEEK_HEIGHT,
            sheetContent = { JobInfoSheet(jobInfoSlice = form.value.jobInfoSlice) }) {
            ... content
    }ascii
09/04/2023, 5:43 PMascii
09/04/2023, 5:53 PMMarco Pierucci
09/04/2023, 5:56 PMjossiwolf
09/04/2023, 6:48 PMBottomSheetScaffold always shows at the peek heightMarco Pierucci
09/04/2023, 6:49 PMMarco Pierucci
09/04/2023, 6:49 PMMarco Pierucci
09/04/2023, 7:54 PM@ExperimentalMaterial3Api
val SheetState.jobInfoPeekHeight: Dp
    get() = when(targetValue) {
        SheetValue.Hidden -> 0.dp
        else -> INFO_SHEET_PEEK_HEIGHT.dp
    }.also {
        Log.e("Marco","peekHeight: $it  target value: $targetValue")
    }
Ive created this to modify the peek property b ut it seems something its updating the state  as I get the following logsMarco Pierucci
09/04/2023, 7:54 PM