PhotoViewGalleryPageOptions constructor

PhotoViewGalleryPageOptions({
  1. Key? key,
  2. required ImageProvider<Object>? imageProvider,
  3. PhotoViewHeroAttributes? heroAttributes,
  4. dynamic minScale,
  5. dynamic maxScale,
  6. dynamic initialScale,
  7. PhotoViewController? controller,
  8. PhotoViewScaleStateController? scaleStateController,
  9. Alignment? basePosition,
  10. ScaleStateCycle? scaleStateCycle,
  11. PhotoViewImageTapUpCallback? onTapUp,
  12. PhotoViewImageTapDownCallback? onTapDown,
  13. PhotoViewImageScaleEndCallback? onScaleEnd,
  14. HitTestBehavior? gestureDetectorBehavior,
  15. bool? tightMode,
  16. FilterQuality? filterQuality,
  17. bool? disableGestures,
  18. ImageErrorWidgetBuilder? errorBuilder,
  19. bool enableScaleAndDoubleTap = true,
})

Implementation

PhotoViewGalleryPageOptions({
  Key? key,
  required this.imageProvider,
  this.heroAttributes,
  this.minScale,
  this.maxScale,
  this.initialScale,
  this.controller,
  this.scaleStateController,
  this.basePosition,
  this.scaleStateCycle,
  this.onTapUp,
  this.onTapDown,
  this.onScaleEnd,
  this.gestureDetectorBehavior,
  this.tightMode,
  this.filterQuality,
  this.disableGestures,
  this.errorBuilder,
  this.enableScaleAndDoubleTap = true
})  : child = null,
      childSize = null,
      assert(imageProvider != null);