Gallery constructor
Gallery(
- {Key? key,
- LoadingBuilder? loadingBuilder,
- String? title,
- Decoration? backgroundDecoration,
- dynamic minScale,
- dynamic maxScale,
- required int initialIndex,
- required List<Image?> galleryItems,
- Axis scrollDirection = Axis.horizontal,
- 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);