ImagePreviewConfig constructor

const ImagePreviewConfig({
  1. bool enable = true,
  2. List? images,
  3. int initialIndex = 0,
  4. bool loop = true,
  5. double minScale = 0.8,
  6. double maxScale = 3.0,
  7. Color backgroundColor = Colors.black,
  8. Color closeBtnColor = Colors.white,
  9. double slideThreshold = 10.0,
  10. Duration doubleTapDuration = const Duration(milliseconds: 300),
  11. List<Widget?>? customBottomWidgets,
  12. EdgeInsetsGeometry customBottomPadding = EdgeInsets.zero,
  13. double bottomMargin = 20.0,
  14. 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,
});