I’m using 0.4.0, and for some reason I don’t have ...
# compose-desktop
s
I’m using 0.4.0, and for some reason I don’t have access to the
DropdownMenu
widget. I see internal widgets like
DropdownMenuContent
and
DropdownMenuPositionProvider
, but not the actual
DropdownMenu
. Am I doing something wrong, or has this been removed from Desktop?
v
I'm using 0.4.0, and I see DropdownMenu in androidx.compose.material
i
DropdownMenu
is not accessible in
commonMain
, you can use it only inside
desktopMain
or
androidMain
. If you want to use it in
commonMain
, you can write your own expect/actual.
u
is there a reason for that? Different signatures?
i
I think there is no significant reason 🙂 . This was a temporary solution (maybe temporary)
Different signatures?
Yes, the Android popup has a slightly different signature (it has PopupProperties). One of the solutions - we can define a common function with the common signature.
u
thanks
s
@Igor Demin Is there a ticket to track this?
i
No, you can create one 🙂
s
should it be on Jetpack Compose issue tracker or Jetbrains Compose github issues?
i
Better in
compose-jb
github as there should be changes not only in commonMain, but in desktopMain too
s
m
Am I right that there is still no real solution for this problem? It just cost me a day until I finally ended up here.