Skip to content

Commit

Permalink
style: Add some missing variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Dec 4, 2024
1 parent cc26e5a commit 56e47a6
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ fun OnboardingScaffold(
val startPadding = paddingValues.calculateStartPadding(LocalLayoutDirection.current)
val endPadding = paddingValues.calculateEndPadding(LocalLayoutDirection.current)

HorizontalPager(pagerState, modifier = Modifier.weight(1f)) {
HorizontalPager(pagerState, modifier = Modifier.weight(1f)) { pageIndex ->
OnboardingPageContent(
page = onboardingPages[it],
page = onboardingPages[pageIndex],
contentPadding = PaddingValues(
top = paddingValues.calculateTopPadding(),
start = startPadding,
Expand Down Expand Up @@ -83,7 +83,7 @@ private fun OnboardingPageContent(page: OnboardingPage, contentPadding: PaddingV
contentAlignment = Alignment.Center,
) {
Image(
page.background,
imageVector = page.background,
contentDescription = null,
modifier = Modifier.fillMaxSize(),
contentScale = ContentScale.FillBounds,
Expand Down Expand Up @@ -122,7 +122,7 @@ private fun Preview() {
viewportHeight = 24.0f,
).build()

val a = OnboardingPage(
val onboardingPage = OnboardingPage(
background = imageVector,
illustration = {
Box(
Expand All @@ -138,7 +138,7 @@ private fun Preview() {

OnboardingScaffold(
pagerState = rememberPagerState { 3 },
onboardingPages = listOf(a, a, a),
onboardingPages = listOf(onboardingPage, onboardingPage, onboardingPage),
bottomContent = {
Box(
modifier = Modifier
Expand Down

0 comments on commit 56e47a6

Please sign in to comment.