TextFieldDialog

fun TextFieldDialog(inputValue: String, onInputValueChange: (String) -> Unit, modifier: Modifier = Modifier, title: String = "", hintText: String = stringResource(id = R.string.sb_text_channel_settings_change_channel_name_hint), positiveButtonText: String = stringResource(id = R.string.sb_text_button_save), onPositiveButtonClick: () -> Unit = {}, negativeButtonText: String = stringResource(id = R.string.sb_text_button_cancel), onNegativeButtonClick: () -> Unit = {}, onDismissRequest: () -> Unit = {})

Represents a dialog containing a text field.

Since

1.0.0

Parameters

inputValue

The value of the text field.

onInputValueChange

The handler for when the value of the text field changes.

modifier

The modifier to be applied to the view.

title

The title of the dialog. Defaults to an empty string.

positiveButtonText

The text of the positive button. Defaults to "Save".

onPositiveButtonClick

The handler for when the user clicks on the positive button.

negativeButtonText

The text of the negative button. Defaults to "Cancel".

onNegativeButtonClick

The handler for when the user clicks on the negative button.

onDismissRequest

The handler for when the user dismisses the dialog.