WaveStyle class

Constructors

WaveStyle({Color waveColor = Colors.blueGrey, bool showMiddleLine = true, double spacing = 8.0, bool showTop = true, bool showBottom = true, double? bottomPadding, StrokeCap waveCap = StrokeCap.round, Color middleLineColor = Colors.redAccent, double middleLineThickness = 3.0, double waveThickness = 3.0, bool showDurationLabel = false, bool extendWaveform = false, Color backgroundColor = Colors.black, bool showHourInDuration = false, double durationLinesHeight = 16.0, TextStyle durationStyle = const TextStyle(color: Colors.red, fontSize: 16.0), double? extraClipperHeight, double labelSpacing = 16.0, double durationTextPadding = 20.0, Color durationLinesColor = Colors.blueAccent, Shader? gradient, double scaleFactor = 20.0})
A model class to provide style to the waveforms.
const

Properties

backgroundColor Color
The background color of waveform box default is Black
final
bottomPadding double?
Wave padding from bottom. Default to size.height/2.
final
durationLinesColor Color
Color of duration lines
final
durationLinesHeight double
Height of duration lines
final
durationStyle TextStyle
Text style for duration labels
final
durationTextPadding double
Value > 0 will be padded right and value < 0 will be padded left.
final
extendWaveform bool
Extend the wave to the end of size.width, default is size.width/2
final
extraClipperHeight double?
It might happen that label text gets cut or have extra clipping.
final
gradient Shader?
Applies this gradient to waveforms.
final
hashCode int
The hash code for this object.
no setterinherited
labelSpacing double
Space between duration labels and waveform square
final
middleLineColor Color
Color line in the middle
final
middleLineThickness double
Thickness of middle line.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleFactor double
Default normalised amplitude/power we have are between 0.0 and 1.0. So scale them, scaleFactor can be used. Defaults to 20.0.
final
showBottom bool
Whether to show bottom wave or not default to true
final
showDurationLabel bool
Show duration labels. Default is false
final
showHourInDuration bool
Show duration label in HH:MM:SS format. Default is MM:SS
final
showMiddleLine bool
Whether to show line in the middle defaults to true
final
showTop bool
Whether to show upper wave or not defaults to true
final
spacing double
Space between each wave
final
waveCap StrokeCap
The kind of finish to place on the end of lines drawn default to StrokeCap.round
final
waveColor Color
Color of the Wave.
final
waveThickness double
Width of each wave
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited