Hello. Anyone can point me how I can change the Dr...
# compose
e
Hello. Anyone can point me how I can change the DropdownMenu color? Currently if I change it through
Modifier.background()
it looks like it just draws other shape on top of current menu container. Adding a screenshot on what I mean. Is there anything I missing? Or should I choose other option on creating DropdownMenus? 🤔
Figured it out, to change background color we should it do this way by wrapping
DropdownMenu()
into
MaterialTheme()
Copy code
MaterialTheme(
     colors = MaterialTheme.colors.copy(
         surface = colorResource(id = R.color.yourMenuColor)
     )
 ) {
     DropdownMenu()
 }