CropPreview class
The CropPreview implements a preview screen for image cropping. It allows the user to crop the image using a movable and resizable rectangle.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CropPreview
Constructors
- CropPreview({required Uint8List bytes, Key? key, CropController? controller, CropMode mode = CropMode.rect, MaskOptions maskOptions = const MaskOptions(), double dragPointSize = 20, CropDragPointBuilder? dragPointBuilder, double hitSize = 20, Widget loadingWidget = const SizedBox.shrink()})
-
Constructs a CropPreview.
const
Properties
- bytes → Uint8List
-
Represents the image data to be displayed in the CropPreview.
final
- controller → CropController?
-
Controls the behaviour of the CropPreview.
final
- dragPointBuilder → CropDragPointBuilder?
-
Allows customization of the crop drag points. Defaults to CropDragPoint.
final
- dragPointSize → double
-
Determines the size of the drag points. Defaults to 20.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hitSize → double
-
The size of the hit area around each drag point where it can be
interacted with. Defaults to 20.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingWidget → Widget
-
Widget which should be shown while the image is being loaded.
Defaults SizedBox.shrink.
final
- maskOptions → MaskOptions
-
Options to customize the crop mask. Defaults to MaskOptions
final
- mode → CropMode
-
Determines the type of cropping that will be applied to the image.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CropPreview> -
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.
override
-
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