GalleryImagePicker constructor

const GalleryImagePicker({
  1. Key? key,
  2. ValueChanged<List<XFile>>? onChanged,
  3. int imageQuality = 85,
  4. bool crop = false,
  5. bool compress = true,
  6. int crossAxisCount = 3,
  7. double crossAxisSpacing = 8.0,
  8. double mainAxisSpacing = 8.0,
  9. String headerText = "Upload Gallery Images",
  10. String placeholderText = "Add Images",
  11. Widget? loadingWidget,
  12. Widget? errorWidget,
})

Implementation

const GalleryImagePicker({
  super.key,
  this.onChanged,
  this.imageQuality = 85,
  this.crop = false,
  this.compress = true,
  this.crossAxisCount = 3,
  this.crossAxisSpacing = 8.0,
  this.mainAxisSpacing = 8.0,
  this.headerText = "Upload Gallery Images",
  this.placeholderText = "Add Images",
  this.loadingWidget,
  this.errorWidget,
});