GalleryPhotoViewWrapper constructor
GalleryPhotoViewWrapper({
- Key? key,
- LoadingBuilder? loadingBuilder,
- BoxDecoration? backgroundDecoration,
- dynamic minScale,
- dynamic maxScale,
- int? initialIndex,
- List<
String> ? galleryItems, - List<
ImageModel> ? mediaItems, - List<
String> ? captions, - Axis scrollDirection = Axis.horizontal,
- Map<
String, String> ? headers, - bool enableSave = true,
- bool autoPlay = true,
Implementation
GalleryPhotoViewWrapper({
super.key,
this.loadingBuilder,
this.backgroundDecoration,
this.minScale,
this.maxScale,
this.initialIndex,
this.galleryItems,
this.mediaItems,
this.captions,
this.scrollDirection = Axis.horizontal,
this.headers,
this.enableSave = true,
this.autoPlay = true,
}) : assert(galleryItems != null || mediaItems != null),
pageController = PageController(initialPage: initialIndex ?? 0);