siri_wave 0.0.1 copy "siri_wave: ^0.0.1" to clipboard
siri_wave: ^0.0.1 copied to clipboard

outdated

A new Flutter package project.

SiriWave #

pub package Platform GitHub top language CirrusCI CodeFactor Visits

A Flutter package to create waveforms like in Siri. It was inspired from the siriwave library.

Demo #

Check out the live demo here.

iOS 7 style #

iOS 7

iOS 9 style #

iOS 9

Getting Started #

Requirements #

  • Dart >= 2.14.0
  • Flutter >= 2.0.0

Usage #

Simply create a SiriWave widget:

import 'package:siri_wave/siri_wave.dart';

class MyWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return SiriWave();
  }
}

You can use options and siriWaveStyle parameters to customize the SiriWave.

See the example directory for a complete sample app.

SiriWave #

Parameter Type Description Default Required
options SiriWaveOptions The configuration of the SiriWave. SiriWaveOptions() no
style SiriWaveStyle The wave style of the SiriWave. SiriWaveStyle.ios_9 no

SiriWaveOptions #

Parameter Type Description Default Required
backgroundColor Color Background color of the waveform. Colors.black no
height double The height of the waveform. 180 no
ios7Options IOS7Options The configuration of the iOS 7 Siri wave style. IOS7Options() no
ios9Options IOS9Options The configuration of the iOS 9 Siri wave style. IOS9Options() no
width double Width of the waveform. 360 no

IOS7Options #

Parameter Type Description Default Required
amplitude double Amplitude of the waveform. Must be in [0,1] range. 1 no

IOS9Options #

Parameter Type Description Default Required
amplitude double Amplitude of the waveform. Must be in [0,1] range. 1 no

🤝 Contributing #

Contributions, issues and feature requests are welcome. Feel free to check issues page if you want to contribute.