PhotoX constructor

PhotoX({
  1. required List<PhotoXItem> items,
  2. DismissMode dismissMode = DismissMode.swipeAny,
  3. bool showPageIndicator = true,
  4. AlignmentGeometry? pageIndicatorAlignment,
  5. Color? pageIndicatorActiveColor,
  6. Color? pageIndicatorBackgroundColor,
  7. EdgeInsetsGeometry? pageIndicatorBubblePadding,
  8. double? pageIndicatorBubbleRadius,
  9. Color? pageIndicatorInactiveColor,
  10. Widget? fullscreenGalleryAppBarLeadingWidget,
  11. TextStyle? fullscreenGalleryTitleTextStyle,
  12. Key? key,
})

Implementation

PhotoX(
    {required this.items,
    this.dismissMode = DismissMode.swipeAny,
    this.showPageIndicator = true,
    this.pageIndicatorAlignment,
    this.pageIndicatorActiveColor,
    this.pageIndicatorBackgroundColor,
    this.pageIndicatorBubblePadding,
    this.pageIndicatorBubbleRadius,
    this.pageIndicatorInactiveColor,
    this.fullscreenGalleryAppBarLeadingWidget,
    this.fullscreenGalleryTitleTextStyle,
    super.key})
    : assert(!(dismissMode == DismissMode.swipeAny && items.length >= 2),
          "Must provide only 1 item when using DismissMode.swipeAny");