DraggablePreviewerState
constructor(scope: CoroutineScope, defaultAnimationSpec: AnimationSpec<Float> = DEFAULT_SOFT_ANIMATION_SPEC, verticalDragType: VerticalDragType = VerticalDragType.None, scaleToCloseMinValue: Float = DEFAULT_SCALE_TO_CLOSE_MIN_VALUE, pagerState: SupportedPagerState, itemStateMap: ItemStateMap, getKey: (Int) -> Any)
Parameters
defaultAnimationSpec
默认动画窗格
verticalDragType
开启垂直手势的类型
scaleToCloseMinValue
下拉关闭的缩小的阈值
pagerState
预览状态
itemStateMap
用于获取transformItemState
getKey
获取当前key