/FlutterPerfectVolumeControl

Flutter 完美的音量控制插件,支持Android和IOS,功能有:显示隐藏音量图标、音量监听、获得音量、设置音量

Primary LanguageDartApache License 2.0Apache-2.0

[中文文档] [English Docs]

What is FlutterPerfectVolumeControl ?

Flutter volume control plug-in, supports Android and IOS, has: Show hidden volume icon, volume change monitoring, set volume, get the current volume of the device.

Please use real machine test, some functions do not support emulator.

Link

Use

Get device volume

PerfectVolumeControl.getVolume();
PerfectVolumeControl.volume;

Set device volume

PerfectVolumeControl.setVolume(0.3);

Hide volume UI

PerfectVolumeControl.hideUI = true;
PerfectVolumeControl.hideUI = false;

Volume change subscription

PerfectVolumeControl.stream.listen((volume) {
  print(volume);
});

Other Plugins

I also maintain the following plug-ins. If you are interested in maintaining with me, please contact me through GitHub. Welcome issues and PR.
平台 插件 描述 版本
Flutter FlutterVideoPlayerLibrary-Desc Flutter 最好用的播放器(UI库) -
Flutter FlutterPerfectVolumeControl Flutter 完美的音量控制器插件 pub package
Flutter FlutterTencentImPlugin 腾讯云IM插件 pub package
Flutter FlutterTencentRtcPlugin 腾讯云Rtc插件 pub package
Flutter FlutterXiaoMiPushPlugin 小米推送SDK插件 pub package
Flutter FlutterHuaWeiPushPlugin 华为推送(HMS Push)插件 pub package
Flutter FlutterTextSpanField 自定义文本样式输入框 pub package
Flutter FlutterClipboardListener 粘贴板监听器 pub package
Flutter FlutterQiniucloudLivePlugin Flutter 七牛云直播云插件 暂未发布,通过 git 集成