native_image_cropper library

Classes

CropController
The CropController manages the state and behaviour of image cropping. It holds data such as image size, crop mode, image rectangle, and crop rectangle, as well as a reference to the image data.
CropDragPoint
The CropDragPoint represents a circular draggable point in an image cropping widget.
CropMask
The CropMask is a custom painter that is used to render the overlay mask in an image cropping widget.
CropPreview
The CropPreview implements a preview screen for image cropping. It allows the user to crop the image using a movable and resizable rectangle.
MaskOptions
The MaskOptions defines the appearance and behaviour of the crop mask.
NativeImageCropper
Utility class for cropping images in a native platform.
OvalMask
The OvalMask provides a custom painter to create an oval CropMask.
RectMask
The RectMask provides a custom painter to create an rectangle CropMask.

Enums

CropDragPointPosition
The CropDragPointPosition defines the position of the crop drag points in the image cropping widget.
CropMode
Specifies the crop mode for cropping an image.
ImageFormat
Represents the image file format. It is used to decide how the image should be compressed.

Mixins

MockNativeImagerCropper
NativeImageCropper mixin for the purpose of creating mocks.

Typedefs

CropDragPointBuilder = Widget Function(double size, CropDragPointPosition position)
Type alias for a callback function. Used to build a custom drag point in a CropPreview.