ScannerBox class

扫码框动画 Scan frame animation

Inheritance

Constructors

ScannerBox({Key? key, Widget? child, Color? borderColor, Color? scannerColor, double? hornStrokeWidth, double? scannerStrokeWidth, Size? scannerSize, Color? backgroundColor})
const

Properties

backgroundColor Color?
背景色
final
borderColor Color?
四边线颜色 Quad color
final
child Widget?
扫码框内的组件 Components in code scanning box
final
hashCode int
The hash code for this object.
no setterinherited
hornStrokeWidth double?
四角线宽度 Width of quadrangular line
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scannerColor Color?
中间滚动线颜色 Middle scroll line color
final
scannerSize Size?
扫描区域的大小 Size of scan area scannerSize==null 时 扫描框大小等于父组件 When scannerSize = null, the scan box size is equal to the parent component
final
scannerStrokeWidth double?
四边线宽度 Quadrilateral width
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ScannerBox>
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