ImageInput constructor
const
ImageInput({
- Key? key,
- int allowMaxImage = 1,
- OctoProgressIndicatorBuilder? loadingBuilder,
- Size imageSize = const Size(100, 100),
- double spacing = 10,
- double runSpacing = 10,
- BoxFit fit = BoxFit.cover,
- Widget addImageIcon = const Icon(Icons.camera_alt_outlined),
- BoxDecoration? addImageContainerDecoration,
- Widget removeImageIcon = const Icon(Icons.close),
- BoxDecoration? imageContainerDecoration,
- OnImageChanged? onImageSelected,
- void onImageRemoved()?,
- List<
XFile> ? images, - bool allowEdit = true,
- GetImageSource? getImageSource,
- GetPreferredCameraDevice? getPreferredCameraDevice,
- ImageErrorWidgetBuilder? errorBuilder,
Implementation
const ImageInput({
super.key,
this.allowMaxImage = 1,
this.loadingBuilder,
this.imageSize = const Size(100, 100),
this.spacing = 10,
this.runSpacing = 10,
this.fit = BoxFit.cover,
this.addImageIcon = const Icon(Icons.camera_alt_outlined),
this.addImageContainerDecoration,
this.removeImageIcon = const Icon(Icons.close),
this.imageContainerDecoration,
this.onImageSelected,
this.onImageRemoved,
this.images,
// this.imagesFromNetwork,
this.allowEdit = true,
this.getImageSource,
this.getPreferredCameraDevice,
this.errorBuilder,
});