-
-
Save skydoves/d8402a5b9d034bcc4f085aec175b2718 to your computer and use it in GitHub Desktop.
remember_example2
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 ConcertPerformers(venueName: String, performers: PersistentList<String>) { | |
val sortedPerformers = remember(performers) { | |
performers.sortedDescending() | |
} | |
Column { | |
Text(text = "The following performers are performing at $venueName tonight:") | |
LazyColumn { | |
items(items = sortedPerformers) { performer -> | |
PerformerItem(performer = performer) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment