VoiceWaveWidget class

Inheritance

Constructors

VoiceWaveWidget({Key? key, required String userId, double size = 50, Color color = Colors.greenAccent, int waveCount = 3, double sensitivity = 3, int noiseFloor = 1, double maxScale = 1.1, VoiceWaveMode mode = VoiceWaveMode.circle, int barCount = 5, double barGap = 3, double barRadius = 2, double barWidth = 0, double barMaxHeight = 0, VoiceBarAlignment barAlignment = VoiceBarAlignment.left, double barMinHeightRatio = 0.08})
const

Properties

barAlignment → VoiceBarAlignment
音轨模式:整组柱子的水平对齐方式
final
barCount → int
音轨模式:柱子数量
final
barGap → double
音轨模式:柱子间距
final
barMaxHeight → double
音轨模式:柱子最大高度
final
barMinHeightRatio → double
✅ 音轨模式:静音时的最小高度比例(相对组件高度)
final
barRadius → double
音轨模式:柱子圆角
final
barWidth → double
音轨模式:柱子粗细
final
color → 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
maxScale → double
最大放大倍数:圆环模式下,音量满强度时波纹最多扩散到基础大小的多少倍
final
mode → VoiceWaveMode
显示模式
final
noiseFloor → int
噪声地板:低于此音量的值视为静音(0-100)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sensitivity → double
灵敏度:值越大,轻微声音越容易触发明显波纹
final
size → double
final
userId → String
final
waveCount → int
final

Methods

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