InAppCropper constructor

InAppCropper({
  1. Key? key,
  2. required ValueChanged<File> onExtractedImage,
  3. required double imageHeight,
  4. required double imageWidth,
  5. double dragItemSize = 50.0,
  6. String? networkImage,
  7. BoxFit? fit,
  8. File? imageFile,
  9. bool canCropImage = false,
  10. BoxBorder? cropBorderDecoration,
  11. Widget? increaseWidget,
  12. Widget? decreaseWidget,
  13. Image? placeHolderImage,
  14. int? rotationDuration,
  15. Widget? title,
  16. BoxDecoration? imageDecoration,
  17. double step = 10,
  18. Color? sliderActiveColor,
  19. Color? sliderInactiveColor,
  20. Color? sliderThumbColor,
  21. bool canRotate = true,
  22. Widget? extractWidget,
})

Constructs an InAppCropper widget.

The onExtractedImage callback must not be null. The imageHeight and imageWidth must be specified and greater than 0.

Implementation

InAppCropper({
  Key? key,
  required this.onExtractedImage,
  required this.imageHeight,
  required this.imageWidth,
  this.dragItemSize = 50.0,
  this.networkImage,
  this.fit,
  this.imageFile,
  this.canCropImage = false,
  this.cropBorderDecoration,
  this.increaseWidget,
  this.decreaseWidget,
  this.placeHolderImage,
  this.rotationDuration,
  this.title,
  this.imageDecoration,
  this.step = 10,
  this.sliderActiveColor,
  this.sliderInactiveColor,
  this.sliderThumbColor,
  this.canRotate = true,
  this.extractWidget,
}) : super(key: key);