diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/onboarding/OnboardingScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/onboarding/OnboardingScreen.kt index f7fd48dbb..6acacad03 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/onboarding/OnboardingScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/onboarding/OnboardingScreen.kt @@ -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) } },