SiriWaveform.ios7 constructor

SiriWaveform.ios7({
  1. IOS7SiriWaveformController? controller,
  2. IOS7SiriWaveformOptions? options,
  3. Key? key,
})

Creates a widget that displays an iOS 7 Siri-style waveform.

controller can be used to change the amplitude, color, frequency, and speed of the waveform.

The dimensions of the waveform can be customized by using options or by enclosing this widget within a SizedBox, Container, or any other widget that applies constraints to its child.

Implementation

SiriWaveform.ios7({
  IOS7SiriWaveformController? controller,
  IOS7SiriWaveformOptions? options,
  super.key,
})  : controller = controller ?? IOS7SiriWaveformController(),
      options = options ?? const IOS7SiriWaveformOptions(),
      style = SiriWaveformStyle.ios_7;