Eric Ampire [MOD]
11/10/2020, 10:52 AMBox {
var isDialogVisible = remember { mutableStateOf(false) }
if (isDialogVisible) {
AlertDialog(
onDismissRequest = {
isDialogVisible.value = false
},
title = { Text(text = "Dialog Title") },
text = { Text(text = "Salut les amis vous allez bien ?") },
confirmButton = {
TextButton(
onClick = { isDialogVisible.value = false },
content = {
Text(text = "Oui")
}
)
},
dismissButton = {
TextButton(
onClick = { isDialogVisible.value = false },
content = {
Text(text = "Non")
}
)
}
)
}
}
Every time I try to display a AlertDialog I get this exception
Exception in thread "AWT-EventQueue-0" kotlin.NotImplementedError: An operation is not implemented: not implemented
at androidx.compose.ui.window.DesktopDialogKt.ActualDialog(DesktopDialog.kt:28)
at androidx.compose.ui.window.DialogKt.Dialog(Dialog.kt:42)
at androidx.compose.material.AlertDialogKt.AlertDialog-ubiPcs4(AlertDialog.kt:143)
at androidx.compose.material.AlertDialogKt.AlertDialog-E7Yi3bI(AlertDialog.kt:80)
at MainKt$main$1.invoke(main.kt:70)
Igor Demin
11/10/2020, 10:57 AMEric Ampire [MOD]
11/10/2020, 8:17 PM