PhotoX constructor
PhotoX({
- required List<
PhotoXItem> items, - DismissMode dismissMode = DismissMode.swipeAny,
- bool showPageIndicator = true,
- AlignmentGeometry? pageIndicatorAlignment,
- Color? pageIndicatorActiveColor,
- Color? pageIndicatorBackgroundColor,
- EdgeInsetsGeometry? pageIndicatorBubblePadding,
- double? pageIndicatorBubbleRadius,
- Color? pageIndicatorInactiveColor,
- Widget? fullscreenGalleryAppBarLeadingWidget,
- TextStyle? fullscreenGalleryTitleTextStyle,
- 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");