keyboard_languages 0.1.4 copy "keyboard_languages: ^0.1.4" to clipboard
keyboard_languages: ^0.1.4 copied to clipboard

Flutter plugin to obtain available keyboard languages (iOS and Android).

keyboard_languages #

Flutter plugin that lists available keyboard languages in Android/iOS device.

Installation #

Add keyboard_languages: ^0.1.4 in your pubspec.yaml dependencies, and import it:

import 'package:keyboard_languages/keyboard_languages.dart';

How to use #

Simply call getKeyboardLanguages() to receive a list of supported keyboard languages:

List<String> keyboardLanguages;
// Platform messages may fail, so we use a try/catch PlatformException.
// We also handle the message potentially returning null.
try {
    keyboardLanguages = await getKeyboardLanguages() ?? <String>[];
} on PlatformException {
    keyboardLanguages = <String>['Failed to get keyboard languages.'];
}

For a more detailed example please take a look at the example folder.

2
likes
130
pub points
0%
popularity

Publisher

verified publishermegatok.com

Flutter plugin to obtain available keyboard languages (iOS and Android).

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on keyboard_languages