Reputation: 3016
I just updated material3 dependency to:
implementation "androidx.compose.material3:material3:1.0.0-alpha16"
And:
drawerContainerColor = Color.Red
Doesn't work anymore. I tried to set:
scrimColor = Color.Red
But the color is not changed? How to change the content color?
Upvotes: 5
Views: 2310
Reputation: 569
Use NavigationDrawerItemDefaults
NavigationDrawerItem(
colors = NavigationDrawerItemDefaults.colors(
selectedContainerColor = Color.White,
unselectedContainerColor = Color.White
)
Upvotes: 1
Reputation: 364391
You can use drawerContainerColor
in the ModalDrawerSheet
ModalNavigationDrawer(
drawerState = drawerState,
drawerContent = {
ModalDrawerSheet (drawerContainerColor=Red){
//..
}
}
//...
)
Upvotes: 5