features/audio_visualizer/audio_visualizer_shapes library
Classes
- AudioVisualizerBar
- A rounded bar of a visualizer: a box with fully rounded corners of radius, turned rotation radians clockwise about the point (pivotX, pivotY) of the layer's box, its own coordinates measured from that point.
- AudioVisualizerShapes
- The shapes a visualizer fills for one set of levels: bars, or the closed outline wave.
Constants
- audioVisualizerBarFill → const double
- How much of its slot a bar of AudioVisualizerStyle.bars and AudioVisualizerStyle.mirroredBars fills; the rest is the gap to the next bar.
- audioVisualizerCircleBarFill → const double
- How much of its share of the ring a bar of AudioVisualizerStyle.circle fills.
- audioVisualizerCircleInnerRadius → const double
- The radius of the ring of AudioVisualizerStyle.circle, against the largest circle that fits the box.
- audioVisualizerWaveMinLevel → const double
- The level a band of AudioVisualizerStyle.wave never drops below, so a silent wave still shows as a thin line.
Functions
-
audioVisualizerShapes(
{required AudioVisualizerStyle style, required double width, required double height, required List< double> levels, double? barFill}) → AudioVisualizerShapes -
The shapes
styledraws forlevels, one level per band from 0 to 1, in a box ofwidthbyheightwhose top-left corner is the origin.