File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
compose/snippets/src/main/java/com/example/compose/snippets/layouts Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ import androidx.compose.ui.unit.dp
7272import androidx.compose.ui.util.lerp
7373import coil.compose.rememberAsyncImagePainter
7474import com.example.compose.snippets.util.rememberRandomSampleImageUrl
75+ import kotlin.math.absoluteValue
7576import kotlinx.coroutines.delay
7677import kotlinx.coroutines.launch
77- import kotlin.math.absoluteValue
7878
7979/*
8080* Copyright 2023 The Android Open Source Project
@@ -93,7 +93,7 @@ import kotlin.math.absoluteValue
9393*/
9494
9595@Composable
96- fun PagerExamples (){
96+ fun PagerExamples () {
9797 AutoAdvancePager (
9898 listOf (
9999 Color .Red ,
@@ -277,9 +277,9 @@ fun PagerWithEffect() {
277277 // scroll position. We use the absolute value which allows us to mirror
278278 // any effects for both directions
279279 val pageOffset = (
280- (pagerState.currentPage - page) + pagerState
281- .currentPageOffsetFraction
282- ).absoluteValue
280+ (pagerState.currentPage - page) + pagerState
281+ .currentPageOffsetFraction
282+ ).absoluteValue
283283
284284 // We animate the alpha, between 50% and 100%
285285 alpha = lerp(
You can’t perform that action at this time.
0 commit comments