PopupPreviewer

fun PopupPreviewer(modifier: Modifier = Modifier, state: PopupPreviewerState, itemSpacing: Dp = DEFAULT_ITEM_SPACE, beyondViewportPageCount: Int = DEFAULT_BEYOND_VIEWPORT_ITEM_COUNT, enter: EnterTransition = DEFAULT_PREVIEWER_ENTER_TRANSITION, exit: ExitTransition = DEFAULT_PREVIEWER_EXIT_TRANSITION, detectGesture: PagerGestureScope = PagerGestureScope(), previewerDecoration: @Composable (innerBox: @Composable () -> Unit) -> Unit = @Composable { innerBox -> innerBox() }, zoomablePolicy: @Composable PagerZoomablePolicyScope.(page: Int) -> Unit)

基于Pager、ZoomableView实现的弹出预览组件

Parameters

modifier

图层修饰

state

组件的状态与控制对象

itemSpacing

图片间的间隔

beyondViewportPageCount

页面外缓存个数

enter

进入动画

exit

退出动画

detectGesture

检测手势

previewerDecoration

外侧图层容器修饰

zoomablePolicy

ZoomableView图层修饰