0

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

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

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

4

1 回答 1

0

尝试将 keyboardType 设置为 TextInputType.multiline

TextField(
  controller: _postController,
  textInputAction: TextInputAction.newline,
  maxLength: 16384,
  maxLines: 10,
  keyboardType: TextInputType.multiline,
  decoration: InputDecoration.collapsed(
    hintText: 'Write something here...',
  ),
)
于 2020-07-27T10:33:38.067 回答