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

MaterialDialogButtons
Link copied to clipboard
fun MaterialDialogButtons(scope: MaterialDialogScope)

Functions

accessibilityButton
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

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

Adds a button which is always enabled to the bottom of the dialog. This should only be used for neutral actions.

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

Adds a negative button to the dialog

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

Adds a positive button to the dialog