Closed ScottPierce closed 1 year ago
For DropDownMenu
we can create a common function in commonMain
:
fun DropdownMenu(
expanded: Boolean,
onDismissRequest: () -> Unit,
modifier: Modifier = Modifier,
offset: DpOffset = DpOffset(0.dp, 0.dp),
content: @Composable ColumnScope.() -> Unit
)
@igordmn could you do the same for AlertDialog? it will help in my situation too (at least for AlertDialog), see https://github.com/JetBrains/compose-jb/issues/758
What is blocking you from adding DropdownMenu as an expect
declaration?
Is there some milestone for this issue?? Access AlertDialog and DropDownMenu from common sources set sounds great.
compose-android // compose-ios // compose-desktop // compose-web
I don't expect that to happen, because Jetpack Compose API is not designed to be cross platform here. It should be Google who should fix the issue.
So far I have built a workaround package a while ago, to the rescue: https://github.com/atsushieno/compose-mpp
It was released in 1.5.0
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
We currently can't access the
DropDownMenu
orAlertDialog
from the common source set for compose. Someone mentioned this was because ofPopupProperties
.