KntStaggeredGallery constructor
const
KntStaggeredGallery({
- Key? key,
- required List<
Photo> photos, - int maxPresentPhoto = DefinedUI.defaultMaxPresentCountGallery,
- int? numberPhotoInBlock,
- Axis? direction,
- double? mainSpacing,
- double? crossSpacing,
- EdgeInsets? padding,
- void onPickedPhoto()?,
- VoidCallback? onSeeAll,
- String convertedSeeAllText()?,
- double? photoBorderRadius,
Implementation
const KntStaggeredGallery({
super.key,
required this.photos,
this.maxPresentPhoto = DefinedUI.defaultMaxPresentCountGallery,
int? numberPhotoInBlock,
Axis? direction,
this.mainSpacing,
this.crossSpacing,
this.padding,
this.onPickedPhoto,
this.onSeeAll,
this.convertedSeeAllText,
this.photoBorderRadius,
}) : direction = direction ?? Axis.vertical,
numberPhotoInBlock = numberPhotoInBlock ??
(direction == Axis.horizontal
? DefinedUI.defaultPhotoCountInGalleryHorzBlock
: DefinedUI.defaultPhotoCountInGalleryVertBlock);