美文网首页
2020-06-18

2020-06-18

作者: rub1cky | 来源:发表于2020-06-20 21:26 被阅读0次

TextField去除底部边线,

TextField(
maxLines: 5
              decoration: InputDecoration(
                contentPadding: EdgeInsets.symmetric(vertical: 8),
                  labelText: "文章链接 (可自动识别粘贴板)",
                  labelStyle: TextStyle(color: Color(0xff999999), fontSize: 14),
                  border: InputBorder.none,
              ),
              cursorColor: Colors.blue,
            ),

TextField改为多行文本框, 直接增加maxLines属性

TextStyle

height 行高  // 1.5

相关文章

网友评论

      本文标题:2020-06-18

      本文链接:https://www.haomeiwen.com/subject/adypxktx.html