MaterialDialogButtons

class MaterialDialogButtons(scope: MaterialDialogScope)

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

Link copied to clipboard
fun MaterialDialogButtons(scope: MaterialDialogScope)

Functions

Link copied to clipboard
@Composable
fun accessibilityButton(icon: ImageVector, colorFilter: ColorFilter = ColorFilter.tint(MaterialTheme.colors.onBackground), onClick: () -> Unit)

Adds a accessibility button to the bottom left of the dialog

Link copied to clipboard
@Composable
fun button(text: String, textStyle: TextStyle = MaterialTheme.typography.button, onClick: () -> Unit = {})

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
@Composable
fun negativeButton(text: String, textStyle: TextStyle = MaterialTheme.typography.button, onClick: () -> Unit = {})

Adds a negative button to the dialog

Link copied to clipboard
@Composable
fun positiveButton(text: String, textStyle: TextStyle = MaterialTheme.typography.button, disableDismiss: Boolean = false, onClick: () -> Unit = {})

Adds a positive button to the dialog