WaveBlob class

Inheritance

Constructors

WaveBlob({Key? key, required Widget child, double scale = 1.0, double speed = 8.6, double amplitude = 4250.0, int blobCount = 2, bool autoScale = true, bool overCircle = true, bool centerCircle = true, List<Color>? circleColors, List<Color>? colors})
const

Properties

amplitude double
波浪的振幅。介于 0.0 到 8500.0 之间
final
autoScale bool
如果设置为 true,则波浪会自动缩放。默认设置为 true
final
blobCount int
波浪的数量。介于 1 到 5 之间
final
centerCircle bool
中心圆的状态
final
child Widget
final
circleColors List<Color>?
中心圆的颜色。为梯度设置两种或更多颜色
final
colors List<Color>?
波浪的渐变颜色
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
overCircle bool
设置为 true 以在中心圆上绘制波浪
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
波浪的缩放。仅在 autoScale 设置为 false 时起作用
final
speed double
波浪动画的速度。介于 1.0 到 10.0 之间
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<WaveBlob>
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, int wrapWidth = 65}) 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