Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jpnurmi/keyboard_info
- Owner: jpnurmi
- License: bsd-3-clause
- Created: 2021-03-29T21:44:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-02T10:55:29.000Z (about 3 years ago)
- Last Synced: 2024-08-22T23:33:08.527Z (3 months ago)
- Topics: flutter, keyboard
- Language: C++
- Homepage: https://pub.dev/packages/keyboard_info
- Size: 313 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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✔❌