Skip to content
pubscout

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.

$ flutter pub add flutter_volume_controller
Source repository

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.

Works with

Packages commonly used together with flutter_volume_controller: ones it builds on, ones built on it, and its own family.