0 purchases
volume key board
volume_key_board #
A Flutter plugin to listen for volume key press events on Android and iOS platforms.
Features #
Listen for volume up and volume down key press events.
Works on both Android and iOS platforms.
Android implemented with Dart natively.
Installation #
To use this plugin, add volume_key_board as a dependency in your pubspec.yaml file.
Usage #
Add the package to your pubspec.yaml:
dependencies:
volume_key_board: <latest_version>
copied to clipboard
import 'package:volume_key_board/volume_key_board.dart';
/// addListener
VolumeKeyBoard.instance.addListener(( event) {
if (event == VolumeKey.up) {
} else if (event == VolumeKey.down) {
}
});
/// removeListener
VolumeKeyBoard.instance.removeListener();
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.