AudioFileWaveforms class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AudioFileWaveforms
Constructors
-
AudioFileWaveforms({Key? key, required Size size, required PlayerController playerController, List<
double> waveformData = const [], bool continuousWaveform = true, PlayerWaveStyle playerWaveStyle = const PlayerWaveStyle(), EdgeInsets? padding, EdgeInsets? margin, BoxDecoration? decoration, Color? backgroundColor, Duration animationDuration = const Duration(milliseconds: 500), Curve animationCurve = Curves.easeIn, Clip clipBehavior = Clip.none, WaveformType waveformType = WaveformType.long, bool enableSeekGesture = true, dynamic onDragStart(DragStartDetails)?, dynamic onDragEnd(DragEndDetails)?, dynamic dragUpdateDetails(DragUpdateDetails)?, dynamic tapUpUpdateDetails(TapUpDetails)?}) -
Generate waveforms from audio file. You play those audio file using
PlayerController.
const
Properties
- animationCurve → Curve
-
Curve for animation. Defaults to Curves.easeIn
final
- animationDuration → Duration
-
Duration for animation. Defaults to 500 milliseconds.
final
- backgroundColor → Color?
-
Color which is applied in to background of the waveform.
If decoration is used then use color in it.
final
- clipBehavior → Clip
-
A clipping behaviour which is applied to container having waveforms.
final
- continuousWaveform → bool
-
When this flag is set to true, new waves are drawn as soon as new
waveform data is available from
onCurrentExtractedWaveformData. If this flag is set to false then waveforms will be drawn after waveform extraction is fully completed.final - decoration → BoxDecoration?
-
Provides box decoration to the container having waveforms.
final
- dragUpdateDetails → dynamic Function(DragUpdateDetails)?
-
Provides a callback on drag updates.
final
- enableSeekGesture → bool
-
Allow seeking with gestures when turned on.
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?
-
Provides margin around waveform.
final
- onDragEnd → dynamic Function(DragEndDetails)?
-
Provides a callback when drag ends.
final
- onDragStart → dynamic Function(DragStartDetails)?
-
Provides a callback when drag starts.
final
- padding → EdgeInsets?
-
Provides padding around waveform.
final
- playerController → PlayerController
-
A PlayerController having different controls for audio player.
final
- playerWaveStyle → PlayerWaveStyle
-
A PlayerWaveStyle instance controls how waveforms should look.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
A size to define height and width of waveform.
final
- tapUpUpdateDetails → dynamic Function(TapUpDetails)?
-
Provides a callback when tapping on the waveform.
final
-
waveformData
→ List<
double> -
Directly draws waveforms from this data. Extracted waveform data
is ignored if waveform data is provided from this parameter.
final
- waveformType → WaveformType
-
Draws waveform bases on selected option. For more info, see
WaveformType documentation.
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, 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