zcode_embed_ime_db 0.0.2 zcode_embed_ime_db: ^0.0.2 copied to clipboard
Zcode 52 standard Mongol embed IME. Soft/Hard layout, word database, words suggestion and next word suggestion.
void main() {
runApp(const DemoApp());
initZcodeDB();
}
class DemoApp extends StatelessWidget {
const DemoApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Zcode Embed IME Demo',
theme: ThemeData(fontFamily: 'ZcodeQagan'),
home: Scaffold(
appBar: AppBar(title: const Text('Zcode Embed IME Demo')),
body: Column(children: [
const Expanded(child: TextField()),
EmbedKeyboard(
layoutBuilders: [
(i) => ZcodeLayout(i, converter: DBZcodeLayoutConverter()),
EnglishLayout.create,
],
),
]),
),
);
}
}