From 5450242fa4d0150b307f33728c04b76cfd41c9b8 Mon Sep 17 00:00:00 2001 From: skydoves Date: Sat, 6 Jan 2024 12:28:10 +0900 Subject: [PATCH] Fix benchmark --- .../com/skydoves/benchmark/landscapist/app/MainActivity.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/benchmark-landscapist-app/src/main/kotlin/com/skydoves/benchmark/landscapist/app/MainActivity.kt b/benchmark-landscapist-app/src/main/kotlin/com/skydoves/benchmark/landscapist/app/MainActivity.kt index ba3443ab..7acc06af 100644 --- a/benchmark-landscapist-app/src/main/kotlin/com/skydoves/benchmark/landscapist/app/MainActivity.kt +++ b/benchmark-landscapist-app/src/main/kotlin/com/skydoves/benchmark/landscapist/app/MainActivity.kt @@ -24,7 +24,6 @@ import androidx.compose.foundation.layout.Column import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.ui.ExperimentalComposeUiApi import androidx.compose.ui.Modifier -import androidx.compose.ui.graphics.Color import androidx.compose.ui.res.painterResource import androidx.compose.ui.semantics.semantics import androidx.compose.ui.semantics.testTagsAsResourceId @@ -45,10 +44,7 @@ class MainActivity : ComponentActivity() { val imageComponent = imageComponent { +PlaceholderPlugin.Loading(painterResource(id = R.drawable.poster)) +PlaceholderPlugin.Failure(painterResource(id = R.drawable.poster)) - +ShimmerPlugin( - baseColor = Color.Transparent, - highlightColor = Color.Transparent, - ) + +ShimmerPlugin() +CrossfadePlugin() +CircularRevealPlugin() +BlurTransformationPlugin()