close
How to Remove TextField Underline in Flutter?, Remove TextField Underline in Flutter, textfield underline in flutter, remove textfield underline, remove textfield underline flutter

How to Remove TextField Underline in Flutter?

Hello Guys How are you all? Hope you all are fine. By default, the TextField widget of Flutter has an underline. Sometimes, you may want to get rid of this line. In this Flutter tutorial, let’s check how to remove the underline in TextField. So In this tutorial, we are going to learn How to Remove TextField Underline in Flutter?

TextField widget has a property decoration which has a sub property border: InputBorder.none This property would Remove TextField Text Input Bottom Underline an Flutter app.

To Remove TextField Underline in Flutter you can set the border property of the decoration of the TextField to InputBorder.none.

  1. How to Remove TextField Underline in Flutter?

    TextField widget has a property decoration which has a sub property border: InputBorder.none This property would Remove TextField Text Input Bottom Underline an Flutter app. To Remove TextField Underline in Flutter you can set the border property of the decoration of the TextField to InputBorder.none.

  2. Remove TextField Underline in Flutter

    TextField widget has a property decoration which has a sub property border: InputBorder.none This property would Remove TextField Text Input Bottom Underline an Flutter app. To Remove TextField Underline in Flutter you can set the border property of the decoration of the TextField to InputBorder.none.

Here Is Example.

before hiding underline:

          child: TextField(
            autocorrect: true,
            decoration: InputDecoration(
              hintText: 'Enter Some Text Here',
            ),
          ),

Output

After hiding underline:

          child: TextField(
            autocorrect: true,
            decoration: InputDecoration(
              border: InputBorder.none,
              hintText: 'Enter Some Text Here',
            ),
          ),

Output

So, It’s All About this tutorial. I hope this tutorial helps you to solve your error. Please Comment Below if You stucks anywhere with my code.

Also Check Out Below Tutorials

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *