How do I center the value of the textfield (flutter). So that it always stays in the center no matter how big the word is? And also how do i remove the underline bar?
new Container(
alignment: Alignment(0.00 , 0.50),
child: new TextField(
style: new TextStyle(
fontSize: 40.0,
height: 2.0,
color: Colors.white
)
)
@Anton, have you tried textAlign: TextAlign.center
to center the text and decoration below to remove underline bar?
TextField(
textAlign: TextAlign.center,
style: new TextStyle(
fontSize: 22.0, fontWeight: FontWeight.bold),
decoration: new InputDecoration.collapsed(
hintText: "Name",
)
)
Screenshot: