-
-
Save skydoves/90dc21fa72232ebe2365534e01097a5a to your computer and use it in GitHub Desktop.
user_profiles
This file contains 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 UserProfiles(viewModel: UserViewModel) { | |
val users by viewModel.users.collectAsStateWithLifecycle() | |
LazyColumn { | |
items(users) { user -> | |
SingleProfile( | |
modifier = Modifier.clickable { | |
viewModel.onUserClick(user) | |
}, | |
.. | |
) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment