AppImagePicker constructor
const
AppImagePicker({
- Key? key,
- String? imageSource,
- int imageQuality = 35,
- double? maxHeight,
- double? maxWidth,
- bool crop = false,
- bool compress = false,
- WidgetImageBuilder? builder,
- ValueChanged<
XFile?> ? onChanged, - bool cameraEnabled = true,
- bool galleryEnabled = true,
- bool autoResetOnPop = true,
- IImageSourceSelectorService sourceSelector = const ImageSourceSelectorService(),
- Widget? errorWidget,
- 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,
});