Last active
June 23, 2021 13:02
-
-
Save catalinghita8/6ccf5c75cb5b9fcc7c3f2efb746bce19 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Composable | |
| fun ProfileCardComposable(userProfile: UserProfile) { | |
| val onlineStatus = remember { mutableStateOf(userProfile.isOnline) } | |
| Card( | |
| Modifier. | |
| ... | |
| .background(color = Helper.getWhiteColor()) | |
| .clickable(onClick = { onlineStatus.value = onlineStatus.value.not() }) | |
| .padding(16.dp) | |
| ) { | |
| 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