Navigation drawers provide ergonomic access to destinations in an app. They’re often next to app content and affect the screen’s layout grid.
DismissibleNavigationDrawer
Common
@Composable
fun DismissibleNavigationDrawer(
drawerContent: @Composable () -> Unit,
modifier: Modifier = Modifier,
drawerState: DrawerState = rememberDrawerState(DrawerValue.Closed),
gesturesEnabled: Boolean = true,
content: @Composable () -> Unit,
)
Parameters
| drawerContent | content inside this drawer |
| modifier | the Modifier to be applied to this drawer |
| drawerState | state of the drawer |
| gesturesEnabled | whether or not the drawer can be interacted by gestures |
| content | content of the rest of the UI |