Advertisement
grasswarlock

Untitled

Feb 16th, 2024 (edited)
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.65 KB | None | 0 0
  1. fun CustomRow(
  2.                 //network function to be called defined here
  3.                 checkPoster : (database1 : FirebaseFirestore, userid1 : String) -> List<String>
  4. ) {
  5.       Row(
  6.           horizontalArrangement = Arrangement.spacedBy(10.dp),
  7.           verticalAlignment = Alignment.CenterVertically
  8.       ) {
  9.           var displayname by rememberSaveable { mutableStateOf("") }
  10.           var avatar by rememberSaveable { mutableStateOf("") }
  11.  
  12.           //network func called here
  13.           posterdata = getPosterData()
  14.           displayname = posterdata[0]
  15.           avatar = posterdata[1]
  16.  
  17.         //something inside of the row
  18.       }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement