AppImagePicker constructor

const AppImagePicker({
  1. Key? key,
  2. String? imageSource,
  3. int imageQuality = 35,
  4. double? maxHeight,
  5. double? maxWidth,
  6. bool crop = false,
  7. bool compress = false,
  8. WidgetImageBuilder? builder,
  9. ValueChanged<XFile?>? onChanged,
  10. bool cameraEnabled = true,
  11. bool galleryEnabled = true,
  12. bool autoResetOnPop = true,
  13. IImageSourceSelectorService sourceSelector = const ImageSourceSelectorService(),
  14. Widget? errorWidget,
  15. Widget? loadingWidget,
})

Implementation

const AppImagePicker({
  super.key,
  this.imageSource,
  this.imageQuality = 35,
  this.maxHeight,
  this.maxWidth,
  this.crop = false,
  this.compress = false,
  this.builder,
  this.onChanged,
  this.cameraEnabled = true,
  this.galleryEnabled = true,
  this.autoResetOnPop = true,
  this.sourceSelector = const ImageSourceSelectorService(),
  this.errorWidget,
  this.loadingWidget,
});