Felix
Felix

Reputation: 139

TextFormField with round edges and labeltext

I would like to use a TextFormField with round edges and a labeltext where the labeltext stays inside the textfield as it does with no round edges. Is this possible?

TextFormField + No Round Edges + Labeltext:

enter image description here

TextFormField + Round Edges + Labeltext:

enter image description here

Upvotes: 0

Views: 97

Answers (1)

Felix
Felix

Reputation: 139

Ok I found a solution. I have to use UnderlineInputBorder instead of OutlineInputBorder.

Upvotes: 1

Related Questions