Check in the image below:
I tried this but not worked.
ModalNavigationDrawer(
drawerState = drawerState,
drawerContent = {
ModalDrawerSheet(
//case-1
modifier = Modifier.clip(RectangleShape), //<--- It draws a shape in background of drawer.
//or
//case-2
modifier = Modifier.background(Color.White), //<--- It draws a color in background of drawer.
) {
//Drawer Items here
}
},
content = {
//Scaffold here
}
)
You can see official documentation here of ModalNavigationDrawer.
ModalDrawerSheet
has a drawerShape
option:
ModalDrawerSheet(
drawerShape = RectangleShape,
) {
//Drawer Items here
}