AppProfileHeader

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

A profile header component that displays a large circular image with an edit button, followed by the user's name and email centered. 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 header.

imageSource

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

onEditClick

Callback invoked when the edit button is clicked.

onImagePicked

Callback invoked when a new image is selected (camera or gallery).


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

A profile header component that displays a large circular image with an edit button, followed by the user's name and email centered. 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 header.

imageSource

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

onEditClick

Callback invoked when the edit button is clicked.

onImagePicked

Callback invoked when a new image is selected (camera or gallery).