KntStaggeredGallery constructor

const KntStaggeredGallery({
  1. Key? key,
  2. required List<Photo> photos,
  3. int maxPresentPhoto = DefinedUI.defaultMaxPresentCountGallery,
  4. int? numberPhotoInBlock,
  5. Axis? direction,
  6. double? mainSpacing,
  7. double? crossSpacing,
  8. EdgeInsets? padding,
  9. void onPickedPhoto(
    1. int
    )?,
  10. VoidCallback? onSeeAll,
  11. String convertedSeeAllText(
    1. int
    )?,
  12. 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);