0 purchases
control volume
control_volume #
A Flutter volume plugin for ios and android control system volume.
The show/hide system UI only support Android now
Variables #
bool showSystemUI: show or hide volume system UI
The default value is true.
VolumeControl().showSystemUI = true
Functions #
getVolume: get current volume from system
VolumeControl().getVolume()
setVolume: input a double number to set system volume. The range is [0, 1]
await VolumeControl().setVolume(double volume, {bool? showSystemUI})
listener: listen system volume
VolumeControl().listener((volume) { // TODO });
removeListener: cancel listen system volume
VolumeControl().removeListener()
getIncreaseRatioVolume: get volume increase ratio from system
VolumeControl().getIncreaseRatioVolume()
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.