ImagePreviewer constructor

const ImagePreviewer({
  1. Key? key,
  2. required List images,
  3. int initialIndex = 0,
  4. bool loop = true,
  5. Color backgroundColor = Colors.black,
  6. Color closeBtnColor = Colors.white,
  7. double minScale = 0.8,
  8. double maxScale = 1.5,
  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 ImagePreviewer({
  super.key,
  required this.images,
  this.initialIndex = 0,
  this.loop = true,
  this.backgroundColor = Colors.black,
  this.closeBtnColor = Colors.white,
  this.minScale = 0.8,
  this.maxScale = 1.5,
  this.slideThreshold = 10.0,
  this.doubleTapDuration = const Duration(milliseconds: 300),
  this.customBottomWidgets,
  this.customBottomPadding = EdgeInsets.zero,
  this.bottomMargin = 20.0,
  this.bottomToImageSpacing = 16.0,
});