system_shortcuts 1.0.0 system_shortcuts: ^1.0.0 copied to clipboard
ANDROID & IOS flutter plugin to use system shortcuts like pressing home, back, volume Up, volume Down keys and toggle wifi, and bluetooth as well.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add system_shortcuts
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
system_shortcuts: ^1.0.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:system_shortcuts/system_shortcuts.dart';