Skip to content

Commit

Permalink
Apply Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeroseman authored and github-actions[bot] committed Oct 11, 2024
1 parent a9f5ba8 commit cb6b32e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ import androidx.compose.ui.unit.dp
import androidx.compose.ui.util.lerp
import coil.compose.rememberAsyncImagePainter
import com.example.compose.snippets.util.rememberRandomSampleImageUrl
import kotlin.math.absoluteValue
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlin.math.absoluteValue

/*
* Copyright 2023 The Android Open Source Project
Expand All @@ -93,7 +93,7 @@ import kotlin.math.absoluteValue
*/

@Composable
fun PagerExamples(){
fun PagerExamples() {
AutoAdvancePager(
listOf(
Color.Red,
Expand Down Expand Up @@ -277,9 +277,9 @@ fun PagerWithEffect() {
// scroll position. We use the absolute value which allows us to mirror
// any effects for both directions
val pageOffset = (
(pagerState.currentPage - page) + pagerState
.currentPageOffsetFraction
).absoluteValue
(pagerState.currentPage - page) + pagerState
.currentPageOffsetFraction
).absoluteValue

// We animate the alpha, between 50% and 100%
alpha = lerp(
Expand Down

0 comments on commit cb6b32e

Please sign in to comment.