PhotoViewGallery constructor
const
PhotoViewGallery({
- Key? key,
- required List<
PhotoViewGalleryPageOptions> ? pageOptions, - LoadingBuilder? loadingBuilder,
- BoxDecoration? backgroundDecoration,
- bool wantKeepAlive = false,
- 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,
- bool pageSnapping = true,
Construct a gallery with static items through a list of PhotoViewGalleryPageOptions.
Implementation
const PhotoViewGallery({
Key? key,
required this.pageOptions,
this.loadingBuilder,
this.backgroundDecoration,
this.wantKeepAlive = false,
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,
this.pageSnapping = true,
}) : itemCount = null,
builder = null,
super(key: key);