audio_flux
2.0.1, released 7 weeks ago by marcobavagnoli.com
Flutter widget for real-time audio visualizations using custom painter or shaders.
What it does
AudioFlux captures audio from playback or microphone and renders it as waveforms, FFT spectra, or GPU‑accelerated shader effects. It provides a configurable widget that updates automatically as audio data changes.
AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a real‑time visual representation of audio in a Flutter app
- You want to display waveforms, frequency spectra, or custom shader effects
- You are already using flutter_soloud or flutter_recorder for audio
Skip it when
- You only need audio playback without visualization
- You lack the ability to add platform permissions or shader assets
- You require a pure Dart solution without native dependencies
Strengths
- Supports both CustomPainter and shader‑based rendering
- Works on all major Flutter platforms
- Integrates with flutter_soloud and flutter_recorder for live audio capture
Weaknesses
- Relies on external packages that may introduce breaking changes
- Custom shaders require GLSL knowledge
- Setup includes platform‑specific permissions
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 3
Add flutter_soloud and flutter_recorder to pubspec, configure microphone/audio permissions, register shader assets in flutter: shaders section, then use AudioFlux widget
AudioFlux(
fluxType: FluxType.waveform,
dataSource: DataSources.soloud,
modelParams: ModelParams(
waveformParams: WaveformPainterParams(barsWidth: 2, barSpacingScale: 0.5, chunkSize: 1),
),
)Alternatives
Packages that do the same job and could replace audio_flux.
- just_audio
Provides robust audio playback without the extra visualization layer
80Compare
Works with
Packages commonly used together with audio_flux: ones it builds on, ones built on it, and its own family.
- flutter_soloudaudio_flux depends on itA low-level audio plugin for Flutter, mainly meant for games and immersive apps. Based on the SoLoud (C++) and miniaudio audio engine.
- flutter_recorderaudio_flux depends on itLow-level cross-platform audio recorder plugin using miniaudio with real-time waveform, FFT and volume.
- shader_buffersaudio_flux depends on itWidget that runs GLSL shaders and feeds their output to other shaders or widgets