GalleryImage constructor
const
GalleryImage({
- Key? key,
- required List<
String> imageUrls, - String? titleGallery,
- double childAspectRatio = 1,
- int crossAxisCount = 3,
- double mainAxisSpacing = 5,
- double crossAxisSpacing = 5,
- int numOfShowImages = 3,
- Color? colorOfNumberWidget,
- TextStyle? textStyleOfNumberWidget,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- Widget? loadingWidget,
- Widget? errorWidget,
- Color galleryBackgroundColor = Colors.black,
- double minScale = .5,
- double maxScale = 10,
- double imageRadius = 8,
- bool reverse = false,
- bool showListInGalley = true,
- bool showAppBar = true,
- bool closeWhenSwipeUp = false,
- 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);