Chris B
08/20/2024, 1:22 PMModalNavigationDrawer example from online. The documentation says the ModalDrawerSheet takes a DrawerState argument, but the IDE insists it doesn't.ef
08/20/2024, 1:25 PMModalDrawerSheet(modifier = Modifier, drawerState = drawerState)Chris B
08/20/2024, 1:26 PMdrawerState isn't a valid argument at all.Ian Lake
08/20/2024, 1:34 PMModalNavigationDrawer that takes a DrawerState, not the ModalBottomSheet. Which example are you reading? Because the official docs look correct: https://developer.android.com/develop/ui/compose/components/drawer#controlChris B
08/20/2024, 1:35 PMIan Lake
08/20/2024, 1:39 PMModalBottomSheet? You'll note there are two versions of it in the latest version of Compose Material3 (see the note on Predictive Back support): https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#ModalDrawerSheet(androidx.compose.material3.DrawerState,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.foundation.layout.WindowInsets,kotlin.Function1)Chris B
08/20/2024, 1:43 PMimport androidx.compose.material3.ModalDrawerSheet
import androidx.compose.material3.ModalNavigationDrawer
I guess the other version isn't available for some reason?Chris B
08/20/2024, 1:48 PM