Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit 265d950

Browse files
committed
Add bouncy loader sample to showcase using Animatable.
1 parent 1740b78 commit 265d950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MotionCompose/app/src/main/java/com/example/android/compose/motion/demo/custom/CustomCanvasAnimation.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fun CustomCanvasBouncyLoader() {
8787
}
8888

8989
@Composable
90-
fun GradientCircle(modifier: Modifier = Modifier) {
90+
private fun GradientCircle(modifier: Modifier = Modifier) {
9191
val brush = remember {
9292
Brush.verticalGradient(listOf(Color(0xFFF56E34), Color(0xFF234EDA)))
9393
}
@@ -96,7 +96,7 @@ fun GradientCircle(modifier: Modifier = Modifier) {
9696
}
9797
}
9898

99-
val bouncyAnimationSpec: SpringSpec<Float> = spring(
99+
private val bouncyAnimationSpec: SpringSpec<Float> = spring(
100100
dampingRatio = Spring.DampingRatioMediumBouncy,
101101
stiffness = Spring.StiffnessLow
102102
)

0 commit comments

Comments
 (0)