hardware_button_listener 0.0.1 copy "hardware_button_listener: ^0.0.1" to clipboard
hardware_button_listener: ^0.0.1 copied to clipboard

PlatformAndroid

A Flutter package that allows you to listen to physical hardware button presses on Android devices, providing key information like button name and key code through a reactive stream-based API.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add hardware_button_listener

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

dependencies:
  hardware_button_listener: ^0.0.1

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:hardware_button_listener/hardware_button_listener.dart';
2
likes
150
points
81
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that allows you to listen to physical hardware button presses on Android devices, providing key information like button name and key code through a reactive stream-based API.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on hardware_button_listener

Packages that implement hardware_button_listener