xxxxxxxxxx
@override
Widget build(BuildContext context) {
return Material(
type: MaterialType.transparency,
child: new Container(
xxxxxxxxxx
TextFormField(
cursorColor: Colors.black,
keyboardType: inputType,
decoration: new InputDecoration(
border: InputBorder.none,
focusedBorder: InputBorder.none,
enabledBorder: InputBorder.none,
errorBorder: InputBorder.none,
disabledBorder: InputBorder.none,
contentPadding:
EdgeInsets.only(left: 15, bottom: 11, top: 11, right: 15),
hintText: "Hint here"),
)
xxxxxxxxxx
Text("My Text",
style: TextStyle(
decoration: TextDecoration.none,
)
);
xxxxxxxxxx
InputDecoration(
border: InputBorder.none,//remove the underline of textfield
//...
),
),