androidx.compose.material3
PermanentDrawerSheet
Composable function
A part of ModalNavigationDrawer. See that page for an overview and examples.
Parameters
@Composable
fun PermanentDrawerSheet(
modifier: Modifier = Modifier,
drawerShape: Shape = RectangleShape,
drawerContainerColor: Color = DrawerDefaults.standardContainerColor,
drawerContentColor: Color = contentColorFor(drawerContainerColor),
drawerTonalElevation: Dp = DrawerDefaults.PermanentDrawerElevation,
windowInsets: WindowInsets = DrawerDefaults.windowInsets,
content: @Composable ColumnScope.() -> Unit,
)
drawerShape: ShapeOptional
drawerShape: ShapeOptionalDefault: RectangleShape
Sets the outline of the sheet.
drawerContainerColor: ColorOptional
drawerContainerColor: ColorOptionalDefault: DrawerDefaults.standardContainerColor
The background color of the sheet.
drawerContentColor: ColorOptional
drawerContentColor: ColorOptionalDefault: contentColorFor(drawerContainerColor)
The default color for text and icons in the sheet.
drawerTonalElevation: DpOptional
drawerTonalElevation: DpOptionalDefault: DrawerDefaults.PermanentDrawerElevation
Tints the sheet a little toward the primary color.
windowInsets: WindowInsetsOptional
windowInsets: WindowInsetsOptionalDefault: DrawerDefaults.windowInsets
Space kept free for system bars inside the sheet.
content: @Composable ColumnScope.() -> UnitRequired
content: @Composable ColumnScope.() -> UnitRequiredThe screen behind the drawer. For a sheet, the items inside it, placed in a Column.
Same as in ModalNavigationDrawer: modifier.