AVSImageGallery constructor
AVSImageGallery(
- BuildContext context, {
- required List<
String> imagePaths, - int? initialIndex = 0,
- bool? showCloseButton = true,
- bool? lastSwipeClose,
- dynamic onSwipe(
- int index
- bool showBottomBar = true,
- Color? backgroundColor,
- LinearGradient? backgroundGradient,
- CloseButtonPosition closeButtonPosition = CloseButtonPosition.topRight,
- Widget? customCloseButton,
- ImageGalleryStyle? imageGalleryStyle,
Implementation
AVSImageGallery(
this.context, {
required this.imagePaths,
this.initialIndex = 0,
this.showCloseButton = true,
this.lastSwipeClose,
this.onSwipe,
this.showBottomBar = true,
this.backgroundColor,
this.backgroundGradient,
this.closeButtonPosition = CloseButtonPosition.topRight,
this.customCloseButton,
this.imageGalleryStyle,
});