Gallery constructor

Gallery(
  1. {Key? key,
  2. LoadingBuilder? loadingBuilder,
  3. String? title,
  4. Decoration? backgroundDecoration,
  5. dynamic minScale,
  6. dynamic maxScale,
  7. required int initialIndex,
  8. required List<Image?> galleryItems,
  9. Axis scrollDirection = Axis.horizontal,
  10. Object? shareButtonTag}
)

Implementation

Gallery({
  super.key,
  this.loadingBuilder,
  this.title,
  this.backgroundDecoration,
  this.minScale,
  this.maxScale,
  required this.initialIndex,
  required this.galleryItems,
  this.scrollDirection = Axis.horizontal,
  this.shareButtonTag,
}) : pageController = PageController(initialPage: initialIndex);