ExtendedPhotoGallery.advanced constructor

const ExtendedPhotoGallery.advanced({
  1. Key? key,
  2. required int pageCount,
  3. required ExtendedPhotoGalleryPageOptionsBuilder builder,
  4. required AdvancedPhotoGalleryPageBuilder advancedBuilder,
  5. PhotoViewOptions? fallbackOptions,
  6. void onPageChanged(
    1. int index
    )?,
  7. PageController? pageController,
  8. bool reverse = false,
  9. Axis scrollDirection = Axis.horizontal,
  10. ScrollPhysics? scrollPhysics,
  11. bool keepViewportMainAxisSize = true,
  12. double? fractionWidthFactor,
  13. double? fractionHeightFactor,
  14. ValueChanged<PageMetrics>? onPageMetricsChanged,
  15. bool callPageChangedAtEnd = true,
  16. double? pageMainAxisHintSize,
  17. int preloadPagesCount = 0,
})

Constructs a gallery with advanced page builder, by builder and advancedBuilder.

Implementation

const ExtendedPhotoGallery.advanced({
  Key? key,
  required int this.pageCount,
  required ExtendedPhotoGalleryPageOptionsBuilder this.builder,
  required AdvancedPhotoGalleryPageBuilder this.advancedBuilder,
  // for PhotoView fallback
  this.fallbackOptions,
  // for PageView settings
  this.onPageChanged,
  this.pageController,
  this.reverse = false,
  this.scrollDirection = Axis.horizontal,
  this.scrollPhysics,
  // for extended settings
  this.keepViewportMainAxisSize = true,
  this.fractionWidthFactor,
  this.fractionHeightFactor,
  this.onPageMetricsChanged,
  this.callPageChangedAtEnd = true,
  this.pageMainAxisHintSize,
  this.preloadPagesCount = 0,
})  : pageOptions = null,
      super(key: key);