Is there an easy way to tune/tweak the background ...
# compose
t
Is there an easy way to tune/tweak the background color and shape of a DropDownMenu? I found I could use Modifier.backround to change the apparent background color, but not increase the corner size (for example). I'm guessing maybe I could if I used Popup directly?
This seems to do the trick:
Copy code
MaterialTheme(
   shapes = MaterialTheme.shapes.copy(extraSmall = RoundedCornerShape(bottomStart = 16.dp, bottomEnd = 16.dp))) {
   DropdownMenu(
...
}
(as per the accepted answer here: https://stackoverflow.com/questions/66781028/jetpack-compose-dropdownmenu-with-rounded-corners). Is there a more elegant/idiomatic way?
m
I solved a similar issue by just using Popup directly to implement my styled dropdown menu.