Last updated:
0 purchases
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()
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.