ImageViewer constructor

const ImageViewer({
  1. Key? key,
  2. required File imageFile,
  3. String? heroTag,
  4. Color backgroundColor = Colors.black87,
  5. Color closeButtonColor = Colors.black54,
  6. Color closeIconColor = Colors.white,
  7. double minScale = 0.5,
  8. double maxScale = 4.0,
  9. VoidCallback? onClose,
})

Creates an ImageViewer widget.

Implementation

const ImageViewer({
  super.key,
  required this.imageFile,
  this.heroTag,
  this.backgroundColor = Colors.black87,
  this.closeButtonColor = Colors.black54,
  this.closeIconColor = Colors.white,
  this.minScale = 0.5,
  this.maxScale = 4.0,
  this.onClose,
});