Compose Wheel组件。滚轮组件

参照 Compose-时间选择器_孟老板007的博客-CSDN博客

其实核心代码 在这个

ColumnPicker


// ColumnPicker.kt
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.AnimationResult
import androidx.compose.animation.core.AnimationVector1D
import androidx.compose.animation.core.DecayAnimationSpec
import androidx.compose.animation.core.calculateTargetValue
import androidx.compose.animation.core.exponentialDecay
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.gestures.draggable
import androidx.compose.foundation.gestures.rememberDraggableState
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundat

猜你喜欢

转载自blog.csdn.net/mp624183768/article/details/128405589