AppTextRow

fun AppTextRow(label: StringResource, modifier: Modifier = Modifier, value: StringResource? = null, leadingIcon: ImageVector? = null, isEnabled: Boolean = false, onClick: () -> Unit? = null, onCheckedChange: (Boolean) -> Unit? = null, trailingIcon: ImageVector? = null)

A row component that displays a label and a value using StringResource.

Parameters

label

The StringResource for the label text.

modifier

The Modifier to be applied to the row.

value

The StringResource for the value text.

leadingIcon

Optional ImageVector to be displayed on the left.

isEnabled

Whether the switcher (if present) is checked.

onClick

Callback when the row is clicked.

onCheckedChange

Callback when the switcher state changes. If provided, a switcher is shown.

trailingIcon

Optional ImageVector to be displayed on the right.


fun AppTextRow(label: String, modifier: Modifier = Modifier, value: String? = null, leadingIcon: ImageVector? = null, isEnabled: Boolean = false, onClick: () -> Unit? = null, onCheckedChange: (Boolean) -> Unit? = null, trailingIcon: ImageVector? = null)

A row component that displays a label and a string value.

Parameters

label

The string for the label text.

modifier

The Modifier to be applied to the row.

value

Optional string value text.

leadingIcon

Optional ImageVector to be displayed on the left.

isEnabled

Whether the switcher (if present) is checked.

onClick

Callback when the row is clicked.

onCheckedChange

Callback when the switcher state changes. If provided, a switcher is shown.

trailingIcon

Optional ImageVector to be displayed on the right.