Reputation: 6261
I am trying to change width of the border of TextFromField
, but it's not working.
Here is my code below.
TextFormField(
decoration: InputDecoration(
border: OutlineInputBorder(
borderSide: new BorderSide(color: Colors.white,width:2)),
fillColor: Colors.white,
labelText: 'Enter your username or email address'
),
),
Upvotes: 2
Views: 1430
Reputation: 3313
You should use the enableBorder
. Try something like this
TextFormField(
decoration: InputDecoration(
enabledBorder: OutlineInputBorder(
borderSide: new BorderSide(color: Colors.red, width: 10)),
fillColor: Colors.white,
labelText: 'Enter your username'),
)
Reference here:
InputDecorarion Class Documentation
BorderSide Class Documentation
Upvotes: 10