active_keyboard_language 0.0.1 copy "active_keyboard_language: ^0.0.1" to clipboard
active_keyboard_language: ^0.0.1 copied to clipboard

Detects and streams the active keyboard (IME) language on iOS and Android, with an RTL-aware Directionality helper widget.

0.0.1 #

  • Initial release.
  • KeyboardLanguage.getCurrentLanguage() — BCP-47 tag of the active keyboard language.
  • KeyboardLanguage.onLanguageChanged — broadcast stream of language changes.
  • KeyboardLanguage.isRtl() — RTL-script convenience check.
  • KeyboardAwareDirectionality — widget that flips TextDirection automatically. Accepts an optional controller that clears its text on every language change, avoiding caret-reset artifacts caused by Android restarting the input connection on an IME subtype switch.
  • Android (API 21+) and iOS (13+) support.
  • iOS: also react to keyboardDidShowNotification, not just currentInputModeDidChangeNotification, so the reported language corrects itself as soon as a field is first focused instead of sticking to an initial pre-focus guess.
  • isRtl() recognizes Uyghur (ug) in addition to the original RTL set, and tag normalization remaps legacy Java/Android ISO-639 codes (iw/ji/in) to their modern equivalents.
0
likes
160
points
53
downloads

Documentation

API reference

Publisher

verified publishercordeliaapps.com

Weekly Downloads

Detects and streams the active keyboard (IME) language on iOS and Android, with an RTL-aware Directionality helper widget.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on active_keyboard_language

Packages that implement active_keyboard_language