ImageCroppingScreen class

Inheritance

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
headerMenuSize double
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

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _ImageCroppingScreenState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited