ImagePreviewConfig constructor
const
ImagePreviewConfig({
- bool enable = true,
- List? images,
- int initialIndex = 0,
- bool loop = true,
- double minScale = 0.8,
- double maxScale = 3.0,
- Color backgroundColor = Colors.black,
- Color closeBtnColor = Colors.white,
- double slideThreshold = 10.0,
- Duration doubleTapDuration = const Duration(milliseconds: 300),
- List<
Widget?> ? customBottomWidgets, - EdgeInsetsGeometry customBottomPadding = EdgeInsets.zero,
- double bottomMargin = 20.0,
- double bottomToImageSpacing = 16.0,
构造函数
Implementation
const ImagePreviewConfig({
this.enable = true,
this.images,
this.initialIndex = 0,
this.loop = true,
this.minScale = 0.8,
this.maxScale = 3.0,
this.backgroundColor = Colors.black,
this.closeBtnColor = Colors.white,
this.slideThreshold = 10.0,
this.doubleTapDuration = const Duration(milliseconds: 300),
this.customBottomWidgets,
this.customBottomPadding = EdgeInsets.zero,
this.bottomMargin = 20.0,
this.bottomToImageSpacing = 16.0,
});