Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Row(
- horizontalArrangement = Arrangement.spacedBy(10.dp),
- verticalAlignment = Alignment.CenterVertically
- ) {
- var avatar by rememberSaveable { mutableStateOf("") }
- var displayname by rememberSaveable { mutableStateOf("") }
- //network function calls here
- database.collection("Users").document(it.userid).get()
- .addOnSuccessListener { document ->
- avatar = document.data?.get("avatar").toString()
- displayname = document.data?.get("displayname").toString()
- Log.d("PosterData", avatar)
- Log.d("PosterData", displayname)
- }
- .addOnFailureListener { exception ->
- Log.d(
- "PosterData",
- "Error getting user data: ",
- exception
- )
- }
- //something inside of the row
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement