negativeButton
fun negativeButton( text: String? = null, textStyle: TextStyle = MaterialTheme.typography.button, @StringRes res: Int? = null, colors: ButtonColors = ButtonDefaults.textButtonColors(), onClick: () -> Unit = {})
Content copied to clipboard
Adds a negative button to the dialog
Parameters
text
the string literal text shown in the button
res
the string resource text shown in the button even if autoDismissing is disabled
onClick
a callback which is called when the button is pressed