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,
- bool closeWithOnTap = false,
- LinearGradient? backgroundGradient,
- ButtonPosition closeButtonPosition = ButtonPosition.topRight,
- Widget? customCloseButton,
- ImageGalleryStyle? imageGalleryStyle,
- ButtonPosition secondaryButtonPosition = ButtonPosition.topLeft,
- Widget? secondaryButton,
Implementation
AVSImageGallery(
this.context, {
required this.imagePaths,
this.initialIndex = 0,
this.showCloseButton = true,
this.lastSwipeClose,
this.onSwipe,
this.showBottomBar = true,
this.backgroundColor,
this.closeWithOnTap = false,
this.backgroundGradient,
this.closeButtonPosition = ButtonPosition.topRight,
this.customCloseButton,
this.imageGalleryStyle,
this.secondaryButtonPosition = ButtonPosition.topLeft,
this.secondaryButton,
});