text cancel in flutter textbox code example
Example 1: flutter textformfield hide underline
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: sLabel),
)
Example 2: text form field flutter
TextFormField(
decoration: InputDecoration(
labelText: 'Enter your username'
),
);