ImageCroppingScreen constructor
ImageCroppingScreen(
- BuildContext _context,
- Uint8List _imageBytes,
- VoidCallback? _onImageStartLoading,
- VoidCallback? _onImageEndLoading,
- dynamic _onImageDoneListener(
- dynamic
- Color _colorForWhiteSpace, {
- OutputImageFormat outputImageFormat = OutputImageFormat.jpg,
- required CropAspectRatio? selectedImageRatio,
- required bool visibleOtherAspectRatios,
- required double squareBorderWidth,
- required List<
CropAspectRatio> ? customAspectRatios, - required Color squareCircleColor,
- required Color defaultTextColor,
- required Color selectedTextColor,
- required double squareCircleSize,
- int encodingQuality = 100,
- String? workerPath,
- required bool isConstrain,
- required bool makeDarkerOutside,
- required EdgeInsets? imageEdgeInsets,
- Key? key,
Implementation
ImageCroppingScreen(
this._context,
Uint8List _imageBytes,
this._onImageStartLoading,
this._onImageEndLoading,
this._onImageDoneListener,
this._colorForWhiteSpace,
{this.outputImageFormat = OutputImageFormat.jpg,
required this.selectedImageRatio,
required this.visibleOtherAspectRatios,
required this.squareBorderWidth,
required this.customAspectRatios,
required this.squareCircleColor,
required this.defaultTextColor,
required this.selectedTextColor,
required this.squareCircleSize,
this.encodingQuality = 100,
this.workerPath,
required this.isConstrain,
required this.makeDarkerOutside,
required this.imageEdgeInsets,
Key? key})
: super(key: key) {
process = ImageProcess(_imageBytes,
encodingQuality: encodingQuality,
workerPath: workerPath,
outputImageFormat: outputImageFormat);
}