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

outdated

Flutter plugin to detect keyboard events.

Flutter Keyboard Plugin #

A Flutter plugin to detect keyboard events on Android. Useful for non-touchscreen devices.

Sponsor

Example #

The example app can show detected events in a ListView.

It's present in the usual example directory.

$ git clone https://github.com/devxpy/flutter-keyboard-plugin.git
$ cd flutter-keyboard-plugin/example
$ flutter run

Installation #

Since flutter plugins don't have access to the regular Activity events, you also, need to make a small change to the android/app/src/main/kotlin/.../MainActivity.kt file in your project.

Just replace FlutterActivity() by KeyboardPluginActivity().

Here's what it should look like:-

import android.os.Bundle
import com.pycampers.keyboard.KeyboardPluginActivity
import io.flutter.plugins.GeneratedPluginRegistrant

class MainActivity : KeyboardPluginActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        GeneratedPluginRegistrant.registerWith(this)
    }
}

Then just follow the regular plugin installation on dart pub.

6
likes
0
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin to detect keyboard events.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on keyboard