0 purchases
volume util
volume_util #
A flutter plugin to config and monitor volume. Support Android and iOS platform.
Getting Started #
Get Volume #
final VolumeUtil volumeUtil = VolumeUtil();
double volume = await volumeUtil.getVolume();
copied to clipboard
Set Volume #
double volume = 0.5;
final VolumeUtil volumeUtil = VolumeUtil();
bool success = await volumeUtil.setVolume(volume);
copied to clipboard
Listen Volume Change #
final VolumeUtil volumeUtil = VolumeUtil();
StreamSubscription ss = volumeUtil.getVolumeChangeStream().listen((volume) {
debugPrint("volume:$volume");
});
...
ss.cancel();
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.