AVSImageGallery constructor

AVSImageGallery(
  1. BuildContext context, {
  2. required List<String> imagePaths,
  3. int? initialIndex = 0,
  4. bool? showCloseButton = true,
  5. bool? lastSwipeClose,
  6. dynamic onSwipe(
    1. int index
    )?,
  7. bool showBottomBar = true,
  8. Color? backgroundColor,
  9. bool closeWithOnTap = false,
  10. LinearGradient? backgroundGradient,
  11. ButtonPosition closeButtonPosition = ButtonPosition.topRight,
  12. Widget? customCloseButton,
  13. ImageGalleryStyle? imageGalleryStyle,
  14. ButtonPosition secondaryButtonPosition = ButtonPosition.topLeft,
  15. 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,
});