Created
March 18, 2023 21:09
-
-
Save Ahmad-Hamwi/7c0d0a283caffc68da2a9c56b50037d4 to your computer and use it in GitHub Desktop.
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 MyLazyList( | |
categories: List<Category>, | |
listState: LazyListState = rememberLazyListState(), | |
) { | |
LazyColumn( | |
state = listState, | |
verticalArrangement = Arrangement.spacedBy(16.dp) | |
) { | |
itemsIndexed(categories) { _, category -> | |
ItemCategory(category) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment