InAppCropper constructor
InAppCropper({
- Key? key,
- required ValueChanged<
File> onExtractedImage, - required double imageHeight,
- required double imageWidth,
- double dragItemSize = 50.0,
- String? networkImage,
- BoxFit? fit,
- File? imageFile,
- bool canCropImage = false,
- BoxBorder? cropBorderDecoration,
- Widget? increaseWidget,
- Widget? decreaseWidget,
- Image? placeHolderImage,
- int? rotationDuration,
- Widget? title,
- BoxDecoration? imageDecoration,
- double step = 10,
- Color? sliderActiveColor,
- Color? sliderInactiveColor,
- Color? sliderThumbColor,
- bool canRotate = true,
- 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);