AudioFileWaveforms class

Inheritance

Constructors

AudioFileWaveforms({Key? key, required Size size, required PlayerController playerController, PlayerWaveStyle playerWaveStyle = const PlayerWaveStyle(), bool enableSeekGesture = true, EdgeInsets? padding, EdgeInsets? margin, BoxDecoration? decoration, Color? backgroundColor, Duration animationDuration = const Duration(milliseconds: 500), Curve animationCurve = Curves.ease, double density = 2, Clip clipBehavior = Clip.none})
Generate waveforms from audio file. You play those audio file using PlayerController. When you play the audio file, another waveform will drawn on top of it to show how much audio has been played and how much is left.
const

Properties

animationCurve Curve
Curve for animation. Defaults to Curves.bounceOut
final
animationDuration Duration
Duration for animation. Defaults to 500 milliseconds.
final
backgroundColor Color?
background color of waveform. if decoration is used then use color in it.
final
clipBehavior Clip
To clip the waves.
final
decoration BoxDecoration?
Use this to decorate background of waveforms
final
density double
Density of the display. Providing accurate density is not neccesary, if desired looking waveforms are needed.
final
enableSeekGesture bool
Enable/Disable seeking using gestures. Defaults to true.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsets?
Use this to give margin around waveform.
final
padding EdgeInsets?
Use this to give padding around waveform.
final
playerController PlayerController
Use this control the waveform.
final
playerWaveStyle PlayerWaveStyle
Use this to style the waveform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
Height and width of waveform.
final

Methods

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