检查下面的图像:
我试过这个,但没有工作。
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
}
)
你可以在这里看到ModalNavigationDrawer的官方文档。
1条答案
按热度按时间ddrv8njm1#
ModalDrawerSheet
有一个drawerShape
选项: