Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jpnurmi/keyboard_info

A Flutter plugin that retrieves the system's active keyboard layout etc.
https://github.com/jpnurmi/keyboard_info

flutter keyboard

Last synced: 24 days ago
JSON representation

A Flutter plugin that retrieves the system's active keyboard layout etc.

Awesome Lists containing this project

README

        

# Keyboard Info

[![pub](https://img.shields.io/pub/v/keyboard_info.svg)](https://pub.dev/packages/keyboard_info)
[![license: BSD](https://img.shields.io/badge/license-BSD-yellow.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![style: lint](https://img.shields.io/badge/style-lint-4BC0F5.svg)](https://pub.dev/packages/lint)
![CI](https://github.com/jpnurmi/keyboard_info/workflows/CI/badge.svg)
[![codecov](https://codecov.io/gh/jpnurmi/keyboard_info/branch/main/graph/badge.svg)](https://codecov.io/gh/jpnurmi/keyboard_info)

This Flutter plugin provides API for querying information about the system's keyboard.

## Usage

```dart
import 'package:keyboard_info/keyboard_info.dart';

void main() async {
final KeyboardInfo info = await getKeyboardInfo();
print(info.layout); // "fi"
print(info.variant); // "mac"
}
```

## Platform Support

PlatformLayoutVariantNotes

Android✔❌





iOS✔❌





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✔❌