Flutter TextField 和 Google Indic Keyboard 相关问题

A Flutter TextField and Google Indic Keyboard related problem

我是 Flutter 的新手,正在构建一个支持 Malayalam 语言的应用程序。我使用 Google 印度语键盘测试 TextField 马拉雅拉姆语条目。 TextField 设置为将 textInputAction 作为换行符。虽然该操作在英语中运行良好,但当我切换到 Malayalam.

时,换行符不起作用
TextField(
  controller: _postController,
  textInputAction: TextInputAction.newline,
  maxLength: 16384,
  maxLines: 10,
  decoration: InputDecoration.collapsed(
    hintText: 'Write something here...',
  ),
)

我在 印度语键盘 中找不到任何可以修复它的设置。 我的大多数用户更喜欢 Google 印度语键盘 。我被卡住了,应用程序的目的被打败了! 请帮助...

尝试将键盘类型设置为 TextInputType.multiline

TextField(
  controller: _postController,
  textInputAction: TextInputAction.newline,
  maxLength: 16384,
  maxLines: 10,
  keyboardType: TextInputType.multiline,
  decoration: InputDecoration.collapsed(
    hintText: 'Write something here...',
  ),
)