-
@Stable() public interface CropperStyleStyle provider for the image cropper.
-
-
Method Summary
Modifier and Type Method Description abstract UnitdrawCropRect(DrawScope $self, Rect region)Draws the crop rect region, including the border and handles abstract ColorgetBackgroundColor()Backdrop for the image abstract ColorgetOverlayColor()Overlay color for regions outside of the crop rect abstract List<Offset>getHandles()Relative positions of the handles used for transforming the crop rect abstract DpgetTouchRad()The maximum distance between a handle's center and the touch position for it to be selected abstract List<CropShape>getShapes()All available crop shapes abstract List<AspectRatio>getAspects()All available aspect ratios abstract BooleangetAutoZoom()Whether the view needs to be zoomed in automatically to fit the crop rect after any change -
-
Method Detail
-
drawCropRect
abstract Unit drawCropRect(DrawScope $self, Rect region)
Draws the crop rect region, including the border and handles
-
getBackgroundColor
abstract Color getBackgroundColor()
Backdrop for the image
-
getOverlayColor
abstract Color getOverlayColor()
Overlay color for regions outside of the crop rect
-
getHandles
abstract List<Offset> getHandles()
Relative positions of the handles used for transforming the crop rect
-
getTouchRad
abstract Dp getTouchRad()
The maximum distance between a handle's center and the touch position for it to be selected
-
getAspects
abstract List<AspectRatio> getAspects()
All available aspect ratios
-
getAutoZoom
abstract Boolean getAutoZoom()
Whether the view needs to be zoomed in automatically to fit the crop rect after any change
-
-
-
-