DismissibleDrawerSheet
Composable Component
Content inside of a dismissible navigation drawer.
Common
@Composable
fun DismissibleDrawerSheet(
modifier: Modifier = Modifier,
drawerShape: Shape = RectangleShape,
drawerContainerColor: Color = DrawerDefaults.standardContainerColor,
drawerContentColor: Color = contentColorFor(drawerContainerColor),
drawerTonalElevation: Dp = DrawerDefaults.DismissibleDrawerElevation,
windowInsets: WindowInsets = DrawerDefaults.windowInsets,
content: @Composable ColumnScope.() -> Unit,
)
Parameters
modifier | the Modifier to be applied to this drawer's content |
drawerShape | defines the shape of this drawer's container |
drawerContainerColor | the color used for the background of this drawer. Use Color.Transparent to have no color. |
drawerContentColor | the preferred color for content inside this drawer. Defaults to either the matching content color for drawerContainerColor , or to the current LocalContentColor if drawerContainerColor is not a color from the theme. |
drawerTonalElevation | when drawerContainerColor is ColorScheme.surface , a translucent primary color overlay is applied on top of the container. A higher tonal elevation value will result in a darker color in light theme and lighter color in dark theme. See also: Surface . |
windowInsets | a window insets for the sheet. |
content | content inside of a dismissible navigation drawer |
Common
@Composable
fun DismissibleDrawerSheet(
drawerState: DrawerState,
modifier: Modifier = Modifier,
drawerShape: Shape = RectangleShape,
drawerContainerColor: Color = DrawerDefaults.standardContainerColor,
drawerContentColor: Color = contentColorFor(drawerContainerColor),
drawerTonalElevation: Dp = DrawerDefaults.DismissibleDrawerElevation,
windowInsets: WindowInsets = DrawerDefaults.windowInsets,
content: @Composable ColumnScope.() -> Unit,
)
Parameters
drawerState | state of the drawer |
modifier | the Modifier to be applied to this drawer's content |
drawerShape | defines the shape of this drawer's container |
drawerContainerColor | the color used for the background of this drawer. Use Color.Transparent to have no color. |
drawerContentColor | the preferred color for content inside this drawer. Defaults to either the matching content color for drawerContainerColor , or to the current LocalContentColor if drawerContainerColor is not a color from the theme. |
drawerTonalElevation | when drawerContainerColor is ColorScheme.surface , a translucent primary color overlay is applied on top of the container. A higher tonal elevation value will result in a darker color in light theme and lighter color in dark theme. See also: Surface . |
windowInsets | a window insets for the sheet. |
content | content inside of a dismissible navigation drawer |
Create your own Component Library
Material Components are meant to be used as is and they do not allow customizations. To build your own Jetpack Compose component library use Compose Unstyled