title

@Composable
fun MaterialDialogScope.title(text: String? = null, @StringRes res: Int? = null, center: Boolean = false)

Adds a title with the given text to the dialog

Parameters

text

title text from a string literal

res

title text from a string resource

center

text is aligned to center when true