ImageCroppingScreen class
Constructors
-
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})
-
Properties
-
customAspectRatios
→ List<CropAspectRatio>?
-
pass custom aspect ratios
final
-
defaultTextColor
→ Color
-
This property contains Color value. By passing this property you can set aspect ratios color which are unselected.
final
-
encodingQuality
↔ int
-
works only if output format is JPG, JPG encoding quality of the cropped image (between 0 and 100, with 100 being the best quality)
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
This property contains Header menu icon size
final
-
imageEdgeInsets
→ EdgeInsets?
-
This property is inner insets of image
final
-
isConstrain
→ bool
-
This property makes SquareCircle can't go outside of image
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
makeDarkerOutside
→ bool
-
This property makes square's outside darker
final
-
outputImageFormat
→ OutputImageFormat
-
Choose output format, default is jpg
final
-
process
↔ ImageProcess
-
This property will be used tom perform image compression before showing up
latefinal
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedImageRatio
→ CropAspectRatio?
-
This property contains ImageRatio value. You can set the initialized a spect ratio when starting the cropper by passing a value of ImageRatio. default value is
ImageRatio.FREE
final
-
selectedTextColor
→ Color
-
This property contains Color value. By passing this property you can set aspect ratios color which is selected.
final
-
squareBorderWidth
→ double
-
This property contains double value. You can change square border width by passing this value.
final
-
squareCircleColor
→ Color
-
This property contains Color value. You can change square circle color by passing this value.
final
-
squareCircleSize
→ double
-
This property contains Square circle(dot) size
final
-
visibleOtherAspectRatios
→ bool
-
This property contains boolean value. If this properties is true then it shows all other aspect ratios in cropping2 screen. default value is
true
.
final
-
workerPath
↔ String?
-
Path to your worker js file. You may want to rename it if you use several
workers. Will use 'worker.js' if nothing specified.
getter/setter pair