I want to remove the black underline that you see under the text. It come whenever I input any character and addon with every character. How can I achieve this? Here is my TextFieldForm code:
TextFormField(
controller: _controller,
showCursor: false,
toolbarOptions: ToolbarOptions(
cut: true,
copy: false,
selectAll: true,
paste: true,
),
decoration: InputDecoration(
border: InputBorder.none,
filled: true,
fillColor: Colors.white,
hintStyle: TextStyle(fontSize: 20),
hintText: "Search the word",
contentPadding: EdgeInsets.only(left: 20),
enabledBorder: OutlineInputBorder(borderSide: BorderSide.none),
suffixIcon:
Icon(Icons.search, color: Colors.black.withOpacity(0.6)),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide.none,
),
),
),
I tried "border: InputBorder.none" but fail....