ImageInput constructor

const ImageInput({
  1. Key? key,
  2. int allowMaxImage = 1,
  3. OctoProgressIndicatorBuilder? loadingBuilder,
  4. Size imageSize = const Size(100, 100),
  5. double spacing = 10,
  6. double runSpacing = 10,
  7. BoxFit fit = BoxFit.cover,
  8. Widget addImageIcon = const Icon(Icons.camera_alt_outlined),
  9. BoxDecoration? addImageContainerDecoration,
  10. Widget removeImageIcon = const Icon(Icons.close),
  11. BoxDecoration? imageContainerDecoration,
  12. OnImageChanged? onImageSelected,
  13. void onImageRemoved(
    1. XFile image,
    2. int index
    )?,
  14. List<XFile>? images,
  15. bool allowEdit = true,
  16. GetImageSource? getImageSource,
  17. GetPreferredCameraDevice? getPreferredCameraDevice,
  18. 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,
});