CropBox class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CropBox
Constructors
- CropBox({Rect? cropRect, required Size clipSize, required Widget child, required _CropRectUpdate cropRectUpdateEnd, Function? cropRectUpdateStart, _CropRectUpdate? cropRectUpdate, Size? cropRatio, Size? maxCropSize, double maxScale = 10.0, CropBoxType cropBoxType = CropBoxType.Square, bool needInnerBorder = false, GridLine? gridLine, CropBoxBorder? cropBoxBorder, Color? backgroundColor, Color? maskColor})
- 裁剪素材组件
Properties
- backgroundColor → Color?
-
裁剪框背景颜色
final
- child → Widget
-
子组件
final
- clipSize → Size
-
待裁剪素材的尺寸
final
- cropBoxBorder → CropBoxBorder?
-
裁剪框边框样式
final
- cropBoxType → CropBoxType
-
裁剪框类型
final
- cropRatio → Size?
-
裁剪框比例
final
- cropRect → Rect?
-
初始裁剪区域(LTRB均是 0 到 1 的double类型)
final
- cropRectUpdate → _CropRectUpdate?
-
裁剪区域变化时的回调
final
- cropRectUpdateEnd → _CropRectUpdate
-
裁剪区域停止变化时的回调函数,可以获得最终裁剪区域
final
- cropRectUpdateStart → Function?
-
裁剪区域开始变化时的回调
final
- gridLine → GridLine?
-
网格线
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maskColor → Color?
-
遮罩层颜色
final
- maxCropSize → Size?
-
裁剪框当前比例下最大宽高
final
- maxScale → double
-
最大放大尺寸
final
- needInnerBorder → bool
-
是否需要内边框
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _CropBoxState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited