dorche
06/06/2022, 1:18 PMdorche
06/06/2022, 1:21 PMModalBottomSheetLayout(
        sheetContent = {
            bottomSheetNavigator.sheetContent(this)
        },
        sheetState = sheetState,
        sheetShape = RectangleShape,
        sheetBackgroundColor = Color.Transparent,
        sheetElevation = 0.dp,
    ) {
        Scaffold(
            bottomBar = {
                AnimatedVisibility(
                    visible = showBottomNav,
                    enter = slideInVertically(initialOffsetY = { it }),
                    exit = slideOutVertically(targetOffsetY = { it }),
                ) {
                    BottomBar(destination)
                }
            },
            content = content
        )
    }dorche
06/06/2022, 1:24 PMval bottomSheetScaffoldState = rememberBottomSheetScaffoldState(
    bottomSheetState = BottomSheetState(BottomSheetValue.Collapsed)
)
BottomSheetScaffold(
    scaffoldState = bottomSheetScaffoldState,
    sheetPeekHeight = 150.dp,
    sheetShape = ...,
    sheetContent = {
      // sheet content is now NOT aware of the bottom nav and bottom nav covers the bottom part of the sheet content
    }
) {
   // screen content correctly has padding/inset for bottom nav
}Albert Chang
06/06/2022, 2:20 PMdorche
06/06/2022, 2:25 PMAlbert Chang
06/06/2022, 2:31 PMAlbert Chang
06/06/2022, 2:43 PMModifier.padding(paddingValues)