PlayerWaveStyle class
Constructors
-
PlayerWaveStyle({Color fixedWaveColor = Colors.white, Color liveWaveColor = Colors.deepOrange, bool showTop = true, bool showBottom = true, StrokeCap waveCap = StrokeCap.round, Color seekLineColor = Colors.orange, double seekLineThickness = 3.0, double waveThickness = 3.0, Color backgroundColor = Colors.black, Shader? fixedWavegradient, double scaleFactor = 1.0, Shader? liveWaveGradient, double visualizerHeight = 28.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 idicates currenly played part.
final
-
liveWaveGradient
→ Shader?
-
This gradient is applied to waves which idicates currenly 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.
Defaluts to 1.0.
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
-
showTop
→ bool
-
Whether to show seeker or not
Whether to show upper wave or not defaults to true
final
-
visualizerHeight
→ double
-
Constant height the wave bar. Height is also dependent on scaleFactor and density.
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
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited