Skip to content

Instantly share code, notes, and snippets.

@catalinghita8
Last active June 23, 2021 13:01
Show Gist options
  • Select an option

  • Save catalinghita8/fac6c2cb50eeb614678a65dcfcd9cb55 to your computer and use it in GitHub Desktop.

Select an option

Save catalinghita8/fac6c2cb50eeb614678a65dcfcd9cb55 to your computer and use it in GitHub Desktop.
@Composable
fun ProfileCardComposable(userProfile: UserProfile) {
val onlineStatus = remember { mutableStateOf(userProfile.isOnline) }
Card(...) {
Row(...) {
ProfilePictureComposable(onlineStatus, userProfile.profilePictureDrawableId)
ProfileContentComposable(onlineStatus, userProfile.name, userProfile.lastActivityMinutes)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment