volume_button_disabler 0.1.0 copy "volume_button_disabler: ^0.1.0" to clipboard
volume_button_disabler: ^0.1.0 copied to clipboard

PlatformAndroid

Flutter plugin to enable/disable hardware volume buttons on Android while your app is in the foreground.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add volume_button_disabler

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  volume_button_disabler: ^0.1.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:volume_button_disabler/volume_button_disabler.dart';
0
likes
150
points
96
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin to enable/disable hardware volume buttons on Android while your app is in the foreground.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on volume_button_disabler

Packages that implement volume_button_disabler