ImagePreview 图片预览
Last updated
Last updated
参数
说明
类型
默认值
images
需要预览的图片数组
List<Widget>
-
startPosition
图片预览起始位置索引
int
0
showIndex
是否显示页数
bool
true
showIndicators
是否显示轮播指示器
bool
false
swipeDuration
动画时长
Duration
Duration(seconds: 1)
onChange
切换图片时的回调函数
Function(int val)
-