Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Dec 4, 2024
1 parent 1b16302 commit 4de578c
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,17 @@ fun OnboardingScreen(goToMainActivity: () -> Unit) {
}

val onboardingPages = buildList {
Page.entries.forEach { page ->
add(page.toOnboardingPage(isHighlighted))
}
Page.entries.forEach { page -> add(page.toOnboardingPage(isHighlighted)) }
}

OnboardingScaffold(
pagerState = pagerState,
onboardingPages = onboardingPages,
bottomContent = {
bottomContent = { paddingValues ->
BottomContent(
modifier = Modifier
.padding(it)
.consumeWindowInsets(it),
.padding(paddingValues)
.consumeWindowInsets(paddingValues),
isLastPage = { isLastPage },
startMainActivity = goToMainActivity,
goToNextPage = { coroutineScope.launch { pagerState.animateScrollToPage(pagerState.currentPage + 1) } },
Expand Down

0 comments on commit 4de578c

Please sign in to comment.