GalleryImage constructor

const GalleryImage({
  1. Key? key,
  2. required List<String> imageUrls,
  3. String? titleGallery,
  4. double childAspectRatio = 1,
  5. int crossAxisCount = 3,
  6. double mainAxisSpacing = 5,
  7. double crossAxisSpacing = 5,
  8. int numOfShowImages = 3,
  9. Color? colorOfNumberWidget,
  10. TextStyle? textStyleOfNumberWidget,
  11. EdgeInsetsGeometry padding = EdgeInsets.zero,
  12. Widget? loadingWidget,
  13. Widget? errorWidget,
  14. Color galleryBackgroundColor = Colors.black,
  15. double minScale = .5,
  16. double maxScale = 10,
  17. double imageRadius = 8,
  18. bool reverse = false,
  19. bool showListInGalley = true,
  20. bool showAppBar = true,
  21. bool closeWhenSwipeUp = false,
  22. bool closeWhenSwipeDown = false,
})

Implementation

const GalleryImage({
  Key? key,
  required this.imageUrls,
  this.titleGallery,
  this.childAspectRatio = 1,
  this.crossAxisCount = 3,
  this.mainAxisSpacing = 5,
  this.crossAxisSpacing = 5,
  this.numOfShowImages = 3,
  this.colorOfNumberWidget,
  this.textStyleOfNumberWidget,
  this.padding = EdgeInsets.zero,
  this.loadingWidget,
  this.errorWidget,
  this.galleryBackgroundColor = Colors.black,
  this.minScale = .5,
  this.maxScale = 10,
  this.imageRadius = 8,
  this.reverse = false,
  this.showListInGalley = true,
  this.showAppBar = true,
  this.closeWhenSwipeUp = false,
  this.closeWhenSwipeDown = false,
})  : assert(numOfShowImages <= imageUrls.length),
      super(key: key);