ExtendedPhotoGallery.advanced constructor
const
ExtendedPhotoGallery.advanced({
- Key? key,
- required int pageCount,
- required ExtendedPhotoGalleryPageOptionsBuilder builder,
- required AdvancedPhotoGalleryPageBuilder advancedBuilder,
- PhotoViewOptions? fallbackOptions,
- void onPageChanged(
- int index
- PageController? pageController,
- bool reverse = false,
- Axis scrollDirection = Axis.horizontal,
- ScrollPhysics? scrollPhysics,
- bool keepViewportMainAxisSize = true,
- double? fractionWidthFactor,
- double? fractionHeightFactor,
- ValueChanged<
PageMetrics> ? onPageMetricsChanged, - bool callPageChangedAtEnd = true,
- double? pageMainAxisHintSize,
- 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);