PhotoViewGallery constructor

const PhotoViewGallery({
  1. Key? key,
  2. required List<PhotoViewGalleryPageOptions>? pageOptions,
  3. LoadingBuilder? loadingBuilder,
  4. BoxDecoration? backgroundDecoration,
  5. bool gaplessPlayback = false,
  6. bool reverse = false,
  7. PageController? pageController,
  8. PhotoViewGalleryPageChangedCallback? onPageChanged,
  9. ValueChanged<PhotoViewScaleState>? scaleStateChangedCallback,
  10. bool enableRotation = false,
  11. ScrollPhysics? scrollPhysics,
  12. Axis scrollDirection = Axis.horizontal,
  13. Size? customSize,
  14. bool allowImplicitScrolling = false,
})

Construct a gallery with static items through a list of PhotoViewGalleryPageOptions.

Implementation

const PhotoViewGallery({
  Key? key,
  required this.pageOptions,
  this.loadingBuilder,
  this.backgroundDecoration,
  this.gaplessPlayback = false,
  this.reverse = false,
  this.pageController,
  this.onPageChanged,
  this.scaleStateChangedCallback,
  this.enableRotation = false,
  this.scrollPhysics,
  this.scrollDirection = Axis.horizontal,
  this.customSize,
  this.allowImplicitScrolling = false,
})  : itemCount = null,
      builder = null,
      super(key: key);