AppProfileRow

fun AppProfileRow(name: StringResource, email: StringResource, modifier: Modifier = Modifier, imageSource: AppImageSource? = AppImageSource.Resource(Res.drawable.profile), onEditClick: () -> Unit? = null)

A profile row component that displays user information with an image and an edit button. This version accepts StringResource for name and email.

Parameters

name

The user's name.

email

The user's email or identifier.

modifier

The Modifier to be applied to the row.

imageSource

The source of the profile image (URL or Resource).

onEditClick

Callback when the edit icon is clicked.


fun AppProfileRow(name: String, email: String, modifier: Modifier = Modifier, imageSource: AppImageSource? = AppImageSource.Resource(Res.drawable.profile), onEditClick: () -> Unit? = null)

A profile row component that displays user information with an image and an edit button. This version accepts raw String for name and email.

Parameters

name

The user's name.

email

The user's email or identifier.

modifier

The Modifier to be applied to the row.

imageSource

The source of the profile image (URL or Resource).

onEditClick

Callback when the edit icon is clicked.


fun AppProfileRow(title: String, description: String, modifier: Modifier = Modifier, image: @Composable RowScope.() -> Unit? = null, action: @Composable RowScope.() -> Unit? = null, containerColor: Color? = null, contentColor: Color? = null)

A generic profile row component that displays user information with slots for image and action.

Parameters

title

The title text.

description

The description text.

modifier

The Modifier to be applied to the row.

image

Optional slot for the image.

action

Optional slot for the action.

containerColor

Optional background color.

contentColor

Optional content color.