MaterialDialogButtons
A class used to build a buttons layout for a MaterialDialog. This should be used in conjunction with the com.vanpra.composematerialdialogs.MaterialDialog.dialogButtons function
Constructors
Functions
Link copied to clipboard
fun accessibilityButton( icon: ImageVector, colorFilter: ColorFilter = ColorFilter.tint(MaterialTheme.colors.onBackground), onClick: () -> Unit)
Content copied to clipboard
Adds a accessibility button to the bottom left of the dialog
Link copied to clipboard
fun button( text: String? = null, textStyle: TextStyle = MaterialTheme.typography.button, @StringRes res: Int? = null, colors: ButtonColors = ButtonDefaults.textButtonColors(), onClick: () -> Unit = {})
Content copied to clipboard
Adds a button which is always enabled to the bottom of the dialog. This should only be used for neutral actions.
Link copied to clipboard
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
Link copied to clipboard
fun positiveButton( text: String? = null, textStyle: TextStyle = MaterialTheme.typography.button, @StringRes res: Int? = null, colors: ButtonColors = ButtonDefaults.textButtonColors(), disableDismiss: Boolean = false, onClick: () -> Unit = {})
Content copied to clipboard
Adds a positive button to the dialog