AnimatedWaveform constructor
const
AnimatedWaveform({})
Creates an AnimatedWaveform widget.
isRecordingcontrols whether animation is active.barCountsets how many bars are shown.maxBarHeightdefines the tallest possible bar.speeddetermines how fast the bars animate.recordingColorandidleColorcontrol color states.
Implementation
const AnimatedWaveform({
super.key,
required this.isRecording,
this.barCount = 20,
this.maxBarHeight = 40,
this.speed = const Duration(seconds: 2),
this.recordingColor = Colors.blueAccent,
this.idleColor = Colors.grey,
});