首页 文章

颤动的多行文本字段

提问于
浏览
13

这可能听起来很简单但是:我们怎样才能在一个多线可编辑的文本字段中颤动? TextField仅适用于单行 .

Edit : 一些精确因为看起来像's not clear. While you can set multiline to virtually wrap the text content, it'仍然不是多线 . 它是一行显示为多行 . 如果你想做点什么

喜欢

这个 .

那么你不能 . 因为您无权访问“输入”按钮 . 没有输入按钮,没有多行 .

2 回答

  • 15

    自2017年9月起,添加了枚举值以支持多行文本编辑 .

    new TextField(
      keyboardType: TextInputType.multiline,
      maxLines: whatever,
    )
    
  • 1

    TextFieldmaxLines属性 .

    enter image description here

相关问题