Created
December 13, 2023 14:02
-
-
Save teegarcs/2ae893f30a9bfb1952f6f14243cddc3f to your computer and use it in GitHub Desktop.
Lazy List with multiple content types.
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
LazyColumn { | |
items(contentList) { content -> | |
when(content){ | |
is ImageOnly -> MessageRow(content) | |
is ImageTextRight -> ImageTextRight(content) | |
is ImageTextLeft -> ImageTextLeft(content) | |
is ImageTextTop -> ImageTextTop(content) | |
//... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment