Skip to content

Instantly share code, notes, and snippets.

@aqua30
Last active May 1, 2023 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aqua30/0e42db4cedc296700fe821ca0ac836f9 to your computer and use it in GitHub Desktop.
Save aqua30/0e42db4cedc296700fe821ca0ac836f9 to your computer and use it in GitHub Desktop.
HorizontalPager(
pageCount = 3,
beyondBoundsPageCount = 3,
state = viewPagerState,
modifier = Modifier
.background(MaterialTheme.colors.background)
.fillMaxSize(),
) { page ->
when (page) {
0 -> ChatListScreen()
1 -> StatusListScreen()
2 -> CallsListScreen()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment