我试图在使用 TextFormField 时隐藏输入文本的下划线。我已经阅读了所有的建议,但没有一个能消除下划线!
child: TextFormField(
autocorrect: false,
inputFormatters: [ new FilteringTextInputFormatter.allow(RegExp("[a-zA-Z0-9]"))],
textAlign: TextAlign.center,
decoration: InputDecoration(
hintText: "i.e. noahsclearnews",
hintStyle: TextStyle( color: Colors.grey, fontSize: ScreenUtil().setSp(40) ),
border: InputBorder.none,
focusedBorder: InputBorder.none,
enabledBorder: InputBorder.none,
errorBorder: InputBorder.none,
disabledBorder: InputBorder.none,
)
)
我错过了什么吗?
