flutter_volume_controller
2.0.2, released 3 months ago by an unverified publisher
Control system volume and listen for volume changes across multiple platforms.
What it does
Allows Flutter applications to programmatically get, set, raise, lower, and mute system volumes. It also provides listeners to detect volume changes in real-time across Android, iOS, macOS, Windows, Linux, and HarmonyOS.
AI-written summary of version 2.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to build a custom in-app volume slider or control panel.
- Your application needs to respond to physical or system volume modifications.
- You need to configure Android audio streams or iOS audio session categories.
Skip it when
- You are testing volume control on the iOS simulator, which does not support MPVolumeView.
- You are dealing with audio devices like external monitors on desktop that lack volume control support.
Strengths
- Cross-platform support including Android, iOS, macOS, Windows, Linux, and HarmonyOS.
- Supports fine-grained features like checking mute status, toggling mute, and setting specific Android audio streams.
Weaknesses
- Volume controls do not work on the iOS simulator.
- Desktop platforms may throw a PlatformException if the default audio device does not support volume control.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
No extra configuration required for basic usage, but follow platform-specific notes if modifying audio session categories or streams.
await FlutterVolumeController.setVolume(0.5);
final volume = await FlutterVolumeController.getVolume();Alternatives
Packages that do the same job and could replace flutter_volume_controller.
- volume_controller
Control and observe system volume on Android, iOS, macOS, Windows, and Linux.
79Compare - flutter_ringtone_player_plus
Play system ringtones, alarms, notifications and custom audio on Android and iOS.
68Compare - perfect_volume_control
Flutter volume control plugin to get, set, and monitor device volume on Android and iOS.
47Compare - volume_listener
A Flutter plugin to listen to volume button press events on Android and iOS.
46Compare
Works with
Packages commonly used together with flutter_volume_controller: ones it builds on, ones built on it, and its own family.