Created
March 19, 2023 20:17
-
-
Save Ahmad-Hamwi/538a2b0ed39c1c23ea34145dffad73a3 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
operator fun component2(): (Int) -> Unit = { | |
... | |
coroutineScope.launch { | |
if (smoothScroll) { | |
lazyListState.animateScrollToItem(syncedIndices[selectedTabIndex]) | |
} else { | |
lazyListState.scrollToItem(syncedIndices[selectedTabIndex]) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment