Last active
March 18, 2023 21:24
-
-
Save Ahmad-Hamwi/4eb8e43d83c57f9b8d447ecb2e9b2c77 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 TabSyncExampleScreen(categories: List<Category>) { | |
val selectedTabIndex by remember { mutableStateOf(0) } | |
val lazyListState = rememberLazyListState() | |
Column { | |
MyTabBar( | |
categories = categories, | |
selectedTabIndex = selectedTabIndex, | |
onTabClicked = { index, _ -> selectedTabIndex = index } | |
) | |
MyLazyList(categories, lazyListState) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment