We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in M3 1.1.0-alpha04 there is an AlertDialog composable function with a slot for content but it not found in jb-compose 1.5.0-dev1114
The text was updated successfully, but these errors were encountered:
Due to the use of native Android code in Dialog, multiplatforms should not be able to use it. You can try using Popup
Popup
@Composable fun Dialog( barrierColor: Color = Color.Black.copy(alpha = 0.5f), onDismissRequest: (() -> Unit), content: @Composable () -> Unit ) { MyBackHandler { onDismissRequest() } Popup(onDismissRequest = onDismissRequest) { Box( modifier = Modifier .clickable( onClick = { onDismissRequest() }, indication = null, interactionSource = remember { MutableInteractionSource() } ) .background(barrierColor).fillMaxSize(), contentAlignment = Alignment.Center ) { content() } } }
Sorry, something went wrong.
Making it available is a separate thing, but it's in our plan on Q3.
Closing as duplicate of #762
#2037
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
No branches or pull requests
in M3 1.1.0-alpha04 there is an AlertDialog composable function with a slot for content but it not found in jb-compose 1.5.0-dev1114
The text was updated successfully, but these errors were encountered: