EditorConfig class

Constructors

EditorConfig({double maxScale, 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, InitCropRectType initCropRectType = InitCropRectType.imageRect})

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
cropRectPadding EdgeInsets
padding of crop rect to layout rect it's refer to initial image rect and crop rect
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. [...]
read-only, inherited
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
initialScale double
initial scale of image it refer to initial image rect and crop rect it's not good to compute,make it 1.0 for now
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
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tickerDuration Duration
duration to begin auto center animation after crop rect is changed
final

Methods

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

Operators

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