input_language 0.1.0 copy "input_language: ^0.1.0" to clipboard
input_language: ^0.1.0 copied to clipboard

Detect and stream the active keyboard / input language (BCP-47, RTL) on iOS, Android, macOS, Windows, Linux and web, and auto-set TextField direction.

0.1.0 #

  • Initial release.
  • KeyboardLanguage.current, onChanged, available(), capabilities() on iOS (UITextInputMode), Android (InputMethodSubtype), macOS (Text Input Sources), Windows (keyboard layouts), Linux (GNOME input sources / IBus, best effort) and web (browser locale as a weak hint).
  • KeyboardLanguage.setLanguage on macOS (TISSelectInputSource) and Windows (ActivateKeyboardLayout); UnsupportedError elsewhere.
  • detectTextDirection / strongDirectionOf: UAX #9 first-strong detection from a table generated from Unicode 16.0 (Hebrew, Arabic, Persian, Urdu, Syriac, Thaana, N'Ko, Samaritan, Mandaic, Adlam, Hanifi Rohingya, …), isolate-aware.
  • isRtlLanguageTag, resolveTextDirection, KeyboardDirectionController, AutoDirectionBuilder, AutoDirectionTextField with four AutoDirectionPolicy modes.
0
likes
160
points
0
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Detect and stream the active keyboard / input language (BCP-47, RTL) on iOS, Android, macOS, Windows, Linux and web, and auto-set TextField direction.

Repository (GitHub)
View/report issues

Topics

#keyboard #rtl #bidi #input-method #localization

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on input_language

Packages that implement input_language