Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun CustomRow(
- //network function to be called defined here
- checkPoster : (database1 : FirebaseFirestore, userid1 : String) -> List<String>
- ) {
- Row(
- horizontalArrangement = Arrangement.spacedBy(10.dp),
- verticalAlignment = Alignment.CenterVertically
- ) {
- var displayname by rememberSaveable { mutableStateOf("") }
- var avatar by rememberSaveable { mutableStateOf("") }
- //network func called here
- posterdata = getPosterData()
- displayname = posterdata[0]
- avatar = posterdata[1]
- //something inside of the row
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement