JetpackTopAppBarWithAvatar

fun JetpackTopAppBarWithAvatar(@StringRes titleRes: Int, avatarUri: String?, avatarContentDescription: String?, modifier: Modifier = Modifier, colors: TopAppBarColors = TopAppBarDefaults.centerAlignedTopAppBarColors(), onAvatarClick: () -> Unit = {})

A Jetpack Compose top app bar with a title and avatar.

Parameters

titleRes

The string resource ID for the title of the top app bar.

avatarUri

The URI for the avatar image.

avatarContentDescription

The content description for the avatar.

modifier

The modifier for this top app bar.

colors

The colors for this top app bar.

onAvatarClick

The callback when the avatar is clicked.