SiriWave constructor

SiriWave({
  1. SiriWaveController? controller,
  2. SiriWaveOptions options = const SiriWaveOptions(),
  3. SiriWaveStyle style = SiriWaveStyle.ios_9,
  4. Key? key,
})

Creates a Siri style waveform.

The dimensions of the waveform can be configured with options or wrapping the SiriWave with either a SizedBox, a Container or any other widget that constraints it's child.

The style of the waveform can be configured with style. By default, iOS 9 Siri style waveform is shown.

Implementation

SiriWave({
  SiriWaveController? controller,
  this.options = const SiriWaveOptions(),
  this.style = SiriWaveStyle.ios_9,
  super.key,
}) : _controller = controller ?? SiriWaveController();