How to install and use keyboard_actions with Flutter 3.7.12

A popular Flutter package with 913 likes that support Flutter version 3.7.12 and above. Last version of the package was published on May 09, 2023.

Installing keyboard_actions

You can either add the package directly using the flutter command line.

$ flutter pub add keyboard_actions

Or add the dependency directly to your pubspec.yaml file.
dependencies:
  keyboard_actions: ^4.2.0

In either case, make sure to refresh your packages by running the following command:

$ flutter pub get

Using keyboard_actions

Once you have installed the package, you can use it in your Flutter application by importing it.
import 'package:keyboard_actions/keyboard_actions.dart';