How can a custom keyboard be implemented?

730 views
Skip to first unread message

Adam Vandervorst

unread,
Apr 23, 2018, 4:28:48 AM4/23/18
to Flutter Dev
I'm looking to implement a custom cross-platform keyboard with Flutter.

As far as I can tell there are two major parts:
- getting the keyboard view and (window) behavior
on IOS done with the ContainingAppForKeyboard template
on Android with ?
- sending key-events and interacting with text-input
on IOS done with the UIKeyInput protocol
on Android with InputMethod

Further would it be nice to have access to the built-in lexicon,
this seems easy with a native plugin.

How can this best be done?
What are considerations I should make?

Regards,
Adam V.

Victor Omar Choueiri

unread,
Apr 23, 2018, 5:32:48 AM4/23/18
to Flutter Dev
And a related question from the gitter channel the other day [which might be a quicker intermediate step]:

How can a developer disable the native keyboard? This would allow them to draw their own custom flutter widget instead and handle input through it.

Thanks,
Victor

梁凯

unread,
May 13, 2019, 7:05:53 AM5/13/19
to Flutter Dev
You can have a try
https://github.com/Im-Kevin/cool_ui

在 2018年4月23日星期一 UTC+8下午5:32:48,Victor Omar Choueiri写道:
Reply all
Reply to author
Forward
0 new messages