Android 12 Developer Preview is here! Try it out, and give us your feedback!

DrawerDefaults

object DrawerDefaults
kotlin.Any
   ↳ androidx.compose.material.DrawerDefaults

Object to hold default values for ModalDrawer and BottomDrawer

Summary

Constants
const Float

Default alpha for scrim color

Properties
Dp

Default Elevation for drawer sheet as specified in material specs

Color

Constants

ScrimOpacity

const val ScrimOpacity: Float

Default alpha for scrim color

Value: 0.32f

Properties

Elevation

val Elevation: Dp

Default Elevation for drawer sheet as specified in material specs

scrimColor

val scrimColor: Color