input_language 0.1.0
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.setLanguageon macOS (TISSelectInputSource) and Windows (ActivateKeyboardLayout);UnsupportedErrorelsewhere.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,AutoDirectionTextFieldwith fourAutoDirectionPolicymodes.
