keyboard_info

Last updated:

0 purchases

keyboard_info Image
keyboard_info Images
Add to Cart

Description:

keyboard info

Keyboard Info #





This Flutter plugin provides API for querying information about the system's keyboard.
Usage #
import 'package:keyboard_info/keyboard_info.dart';

void main() async {
final KeyboardInfo info = await getKeyboardInfo();
print(info.layout); // "fi"
print(info.variant); // "mac"
}
copied to clipboard
Platform Support #

PlatformLayoutVariantNotes

Android✔❌


InputMethodManager.getCurrentInputMethodSubtype()
InputMethodSubtype.getLanguageTag()




iOS✔❌


UITextInputMode.activeInputModes
UITextInputMode.primaryLanguage




Linux✔✔


Cinnamon:
org.gnome.libgnomekbd.keyboard layouts

GNOME:

org.gnome.desktop.input-sources mru-sources
org.gnome.desktop.input-sources sources


KDE:

~/.local/share/kded5/keyboard/session/layout_memory.xml
~/.config/kxkbrc


MATE:
org.mate.peripherals-keyboard-xkb.kbd layouts

XFCE:
~/.config/xfce4/xfconf/xfce-perchannel-xml/keyboard-layout.xml

Fallback: /etc/default/keyboard




macOS✔✔


TISCopyCurrentKeyboardInputSource()
TISGetInputSourceProperty()

kTISPropertyInputSourceLanguages
kTISPropertyInputSourceID





Web❌❌


Not available (stubbed)




Windows✔❌


GetKeyboardLayoutName()
LCIDToLocaleName()

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.