File tree Expand file tree Collapse file tree
ui/components/src/main/kotlin/com/getcode/ui/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com.getcode.ui.components
22
33import android.widget.Toast
4+ import androidx.compose.animation.core.Spring
45import androidx.compose.animation.core.animateFloatAsState
6+ import androidx.compose.animation.core.spring
7+ import androidx.compose.animation.core.tween
58import androidx.compose.foundation.layout.Box
69import androidx.compose.foundation.layout.BoxScope
710import androidx.compose.foundation.layout.fillMaxSize
@@ -31,8 +34,12 @@ class SelectionContainerState(val words: String = "") {
3134
3235 val scale : State <Float >
3336 @Composable get() = animateFloatAsState(
34- targetValue = if (shown) 1.2f else 1f ,
35- label = " access key scale"
37+ targetValue = if (shown) 1.2f else 1f ,
38+ animationSpec = spring(
39+ dampingRatio = Spring .DampingRatioMediumBouncy ,
40+ stiffness = Spring .StiffnessMediumLow
41+ ),
42+ label = " access key scale"
3643 )
3744}
3845
You can’t perform that action at this time.
0 commit comments