ImageCroppingScreen constructor

ImageCroppingScreen(
  1. BuildContext _context,
  2. Uint8List _imageBytes,
  3. VoidCallback? _onImageStartLoading,
  4. VoidCallback? _onImageEndLoading,
  5. dynamic _onImageDoneListener(
    1. dynamic
    ),
  6. Color _colorForWhiteSpace, {
  7. OutputImageFormat outputImageFormat = OutputImageFormat.jpg,
  8. required CropAspectRatio? selectedImageRatio,
  9. required bool visibleOtherAspectRatios,
  10. required double squareBorderWidth,
  11. required List<CropAspectRatio>? customAspectRatios,
  12. required Color squareCircleColor,
  13. required Color defaultTextColor,
  14. required Color selectedTextColor,
  15. required double squareCircleSize,
  16. int encodingQuality = 100,
  17. String? workerPath,
  18. required bool isConstrain,
  19. required bool makeDarkerOutside,
  20. required EdgeInsets? imageEdgeInsets,
  21. 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);
}