EditorConfig class

Constructors

EditorConfig({double maxScale = 5.0, EdgeInsets cropRectPadding = const EdgeInsets.all(20.0), Size cornerSize = const Size(30.0, 5.0), Color? cornerColor, Color? lineColor, double lineHeight = 0.6, EditorMaskColorHandler? editorMaskColorHandler, double hitTestSize = 20.0, Duration animationDuration = const Duration(milliseconds: 200), Duration tickerDuration = const Duration(milliseconds: 400), double? cropAspectRatio = CropAspectRatios.custom, double? initialCropAspectRatio = CropAspectRatios.custom, InitCropRectType initCropRectType = InitCropRectType.imageRect, EditorCropLayerPainter cropLayerPainter = const EditorCropLayerPainter(), double speed = 1.0, HitTestBehavior hitTestBehavior = HitTestBehavior.deferToChild, EditActionDetailsIsChanged? editActionDetailsIsChanged, bool reverseMousePointerScrollDirection = false})

Properties

animationDuration Duration
Auto center animation duration
final
cornerColor Color?
Color of corner shape default: primaryColor
final
cornerSize Size
Size of corner shape
final
cropAspectRatio double?
Aspect ratio of crop rect default is custom
final
cropLayerPainter EditorCropLayerPainter
Custom crop layer
final
cropRectPadding EdgeInsets
Padding of crop rect to layout rect it's refer to initial image rect and crop rect
final
editActionDetailsIsChanged EditActionDetailsIsChanged?
Call when EditActionDetails is changed
final
editorMaskColorHandler EditorMaskColorHandler?
Editor mask color base on pointerDown default: scaffoldBackgroundColor.withOpacity(pointerDown ? 0.4 : 0.8)
final
hashCode int
The hash code for this object.
no setterinherited
hitTestBehavior HitTestBehavior
How to behave during hit tests.
final
hitTestSize double
Hit test region of corner and line
final
initCropRectType InitCropRectType
Init crop rect base on initial image rect or image layout rect
final
initialCropAspectRatio double?
Initial Aspect ratio of crop rect default is custom
final
lineColor Color?
Color of crop line default: scaffoldBackgroundColor.withOpacity(0.7)
final
lineHeight double
Height of crop line
final
maxScale double
Max scale
final
reverseMousePointerScrollDirection bool
reverse mouse pointer scroll deirection false: zoom int => down, zoom out => up true: zoom int => up, zoom out => down default is false
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
Speed for zoom/pan
final
tickerDuration Duration
Duration to begin auto center animation after crop rect is changed
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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