I'm using compose for desktop and I can't seem to find DropdownMenu. I am trying to make a drop down box or combo box. Is there a different component I should be using?
r
rsktash
02/15/2021, 5:20 PM
Moved AlertDialog and DropdownMenu to be Android only for now
To be clear, AlertDialog also exists in Desktop specific code, so you can still use it on Desktop too. The thing that was removed was the common wrapper, while we figure out what common API we would most like to expose.
jim
02/15/2021, 5:46 PM
For DropdownMenu, I think you would need to copy-paste the source code (and remove the
properties
parameter) for now, I imagine we will provide that one in desktop also eventually.
l
Louis Pullen-Freilich [G]
02/15/2021, 6:21 PM
DropdownMenu was also added back to Desktop code, so should be available in the next desktop release
👍 3
g
gbaldeck
02/15/2021, 7:24 PM
I upgraded to the latest desktop compose and I see it now. The problem now is that the box always places itself in the top left corner, I don't know how to get it to line up with the textfield