LargeProfile
LargeProfile is a composable that displays a user's profile card. Given a ComponentState, it displays a LargeProfile using the other atomic components provided within the SDK.
Parameters
profile
The user's profile information
modifier
Composable modifier
fun LargeProfile(state: ComponentState<Profile>, modifier: Modifier = Modifier, avatar: @Composable (state: ComponentState<Profile>) -> Unit = { profileState ->
Avatar(
state = profileState,
size = 132.dp,
modifier = Modifier.clip(CircleShape),
)
}, viewProfile: @Composable (state: ComponentState<Profile>) -> Unit = { profileState ->
ViewProfileButton(
state = profileState,
modifier = Modifier.padding(0.dp),
)
})
LargeProfile is a composable that displays a user's profile card. Given a ComponentState for a Profile, it displays a LargeProfile or the skeleton if it's in a loading state.
Parameters
state
The user's profile state
modifier
Composable modifier
avatar
Composable to display the user avatar
viewProfile
Composable to display the view profile button