PhotoViewGallery constructor
const
PhotoViewGallery({
- Key? key,
- required List<
PhotoViewGalleryPageOptions> ? pageOptions, - LoadingBuilder? loadingBuilder,
- BoxDecoration? backgroundDecoration,
- bool gaplessPlayback = false,
- bool reverse = false,
- PageController? pageController,
- PhotoViewGalleryPageChangedCallback? onPageChanged,
- ValueChanged<
PhotoViewScaleState> ? scaleStateChangedCallback, - bool enableRotation = false,
- ScrollPhysics? scrollPhysics,
- Axis scrollDirection = Axis.horizontal,
- Size? customSize,
- 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);