PlayerWaveStyle class
Constructors
-
PlayerWaveStyle({Color fixedWaveColor = Colors.white54, Color liveWaveColor = Colors.white, bool showTop = true, bool showBottom = true, bool showSeekLine = true, StrokeCap waveCap = StrokeCap.round, Color seekLineColor = Colors.white, double seekLineThickness = 2.0, double waveThickness = 3.0, Color backgroundColor = Colors.black, Shader? fixedWaveGradient, double scaleFactor = 100.0, Shader? liveWaveGradient, double spacing = 5, double scrollScale = 1.0})
-
const
Properties
-
backgroundColor
→ Color
-
The background color of waveform box default is Black
final
-
fixedWaveColor
→ Color
-
Color of the
wave
which is behind the live wave.
final
-
fixedWaveGradient
→ Shader?
-
Provide gradient to waves which is behind the live wave.
Use shader as shown in example.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
liveWaveColor
→ Color
-
Color of the
live
wave which indicates currently played part.
final
-
liveWaveGradient
→ Shader?
-
This gradient is applied to waves which indicates currently played part.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
scaleFactor
→ double
-
This is applied to each wave while generating.
Use this to scale the waves. Defaults to 100.0.
final
-
scrollScale
→ double
-
Scales the wave when waveforms are seeked. The scaled waves returns back
to original scale when gesture ends. To get result set value greater then
1.
final
-
seekLineColor
→ Color
-
Color line in the middle
final
-
seekLineThickness
→ double
-
Thickness of seek line. For microphone recording this line
is in the middle.
final
-
showBottom
→ bool
-
Whether to show bottom wave or not default to true
final
-
showSeekLine
→ bool
-
Shows seek line in the middle when enabled.
final
-
showTop
→ bool
-
Whether to show upper wave or not defaults to true
final
-
spacing
→ double
-
Space between two waves.
final
-
waveCap
→ StrokeCap
-
The kind of finish to place on the end of lines drawn.
Default to StrokeCap.round
final
-
waveThickness
→ double
-
Width of each wave
final
Methods
-
getSamplesForWidth(double width)
→ int
-
Determines number of samples which will fit in provided width.
Returned number of samples are also dependent on spacing set for
this constructor.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited