AudioWaveform constructor

const AudioWaveform({
  1. Key? key,
  2. required List<double> amplitudes,
  3. double progress = 0.0,
  4. Color playedColor = const Color(0xFF6366F1),
  5. Color unplayedColor = const Color(0xFFCBD5E1),
  6. double barWidth = 3.0,
  7. double barSpacing = 2.0,
  8. double barRadius = 2.0,
  9. double height = 48.0,
  10. ValueChanged<double>? onSeek,
})

Implementation

const AudioWaveform({
  super.key,
  required this.amplitudes,
  this.progress = 0.0,
  this.playedColor = const Color(0xFF6366F1),
  this.unplayedColor = const Color(0xFFCBD5E1),
  this.barWidth = 3.0,
  this.barSpacing = 2.0,
  this.barRadius = 2.0,
  this.height = 48.0,
  this.onSeek,
});