如何在颤动中检测选定的键盘语言? [英] how to detect selected keyboard language in flutter ?

查看:61
本文介绍了如何在颤动中检测选定的键盘语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在键入时检测当前的键盘语言?我正在尝试在聊天应用程序中实现翻译,我需要知道其他用户正在输入哪种语言,以便我可以根据用户的母语知道要翻译的文本

how to detect the current keyboard language while typing? I'm trying to implement a translation in chat app, I need to know which language the other user is typing in so I could know which text to translate based on the user native language

推荐答案

目前似乎没有办法在扑朔迷离中做到这一点。
我在GitHub上提交了一个问题-如果您希望尽快对其进行分类,请对其进行投票。
https://github.com/flutter/flutter/issues/25841

There does not seem to be a way to do this in flutter currently. I submitted an issue for it on GitHub - please upvote it if you would like to help it be triaged sooner. https://github.com/flutter/flutter/issues/25841

这篇关于如何在颤动中检测选定的键盘语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆