Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,15 @@ fun AlertDialogSample() {
Text("Here is a text ")
},
confirmButton = {
Button(

TextButton(
onClick = {
openDialog.value = false
}) {
Text("This is the Confirm Button")
}
},
dismissButton = {
Button(

TextButton(
onClick = {
openDialog.value = false
}) {
Expand All @@ -58,4 +56,4 @@ fun AlertDialogSample() {
}

}
}
}
6 changes: 2 additions & 4 deletions docs/material/alertdialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,15 @@ fun AlertDialogSample() {
Text("Here is a text ")
},
confirmButton = {
Button(

TextButton(
onClick = {
openDialog.value = false
}) {
Text("This is the Confirm Button")
}
},
dismissButton = {
Button(

TextButton(
onClick = {
openDialog.value = false
}) {
Expand Down