We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a403dc commit c8f455aCopy full SHA for c8f455a
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/Switch.kt
@@ -80,12 +80,10 @@ fun Switch(
80
var hasVibrated by remember { mutableStateOf(false) }
81
var hasVibratedOnce by remember { mutableStateOf(false) }
82
83
- val springSpec = remember {
84
- spring<Dp>(
85
- dampingRatio = Spring.DampingRatioLowBouncy,
86
- stiffness = Spring.StiffnessMedium
87
- )
88
- }
+ val springSpec = spring<Dp>(
+ dampingRatio = Spring.DampingRatioLowBouncy,
+ stiffness = Spring.StiffnessMedium
+ )
89
90
var dragOffset by remember { mutableStateOf(0f) }
91
val thumbOffset by animateDpAsState(
0 commit comments