windows_ime_manager 1.0.0 windows_ime_manager: ^1.0.0 copied to clipboard
A Flutter plugin for managing Input Method Editors (IME) on Windows, supporting seamless switching between different languages.
windows_ime_manager #
The windows_ime_manager
package enables easy management of Input Method Editors (IME) for Windows applications developed with Flutter. It supports Japanese and English languages, allowing for straightforward IME setup and switching. This package is designed to enhance multilingual input in desktop applications, providing a reliable and simple solution for developers looking to incorporate diverse language support.
Features Supported #
Features | Windows |
---|---|
Setup IME | ✔️ |
Platform Support #
Windows |
---|
✔ |
Languages Supported #
Languages |
---|
Japanese |
English |
Usage #
Import the package with:
import 'package:windows_ime_manager/windows_ime_manager.dart';
Create an instance of the WindowsImeManager
class:
final _windowsImeManagerPlugin = WindowsImeManager();
Create a function to set the IME:
Future<void> setLanguageIme(String language, String type) async {
try {
await _windowsImeManagerPlugin.setLanguageIme(language, type);
} on PlatformException {
debugPrint('Failed to set language IME.');
}
}
Call the function with the desired language and type:
setLanguageIme('Japanese', 'japaneseHalfWidthKatakanaIme');
setLanguageIme('English', '');
See the example app for detailed implementation information.