Package 

Interface CropperStyle


  • @Stable() 
    public interface CropperStyle
    
                        

    Style provider for the image cropper.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit drawCropRect(DrawScope $self, Rect region) Draws the crop rect region, including the border and handles
      abstract Color getBackgroundColor() Backdrop for the image
      abstract Color getOverlayColor() 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 Dp getTouchRad() 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 Boolean getAutoZoom() Whether the view needs to be zoomed in automatically to fit the crop rect after any change
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • drawCropRect

         abstract Unit drawCropRect(DrawScope $self, Rect region)

        Draws the crop rect region, including the border and handles

      • 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

      • getAutoZoom

         abstract Boolean getAutoZoom()

        Whether the view needs to be zoomed in automatically to fit the crop rect after any change