Created
October 4, 2020 11:21
-
-
Save catalinghita8/43b0a6919816de00b94322632a49d8b3 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 ProfileContentComposable(onlineStatus: MutableState<Boolean>, | |
| name: String, | |
| lastActivityMinutes: Int) { | |
| Column( ... ) | |
| ) { ... | |
| Text( | |
| text = if (onlineStatus.value) | |
| "Active now" | |
| else | |
| "$lastActivityMinutes mins ago", | |
| ... ) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment