TextField(
decoration: InputDecoration(
contentPadding: EdgeInsets.symmetric(
horizontal: 15.0,
vertical: 20.0
),
hintText: 'Write your message...',
),
),
If you want to add a padding of 15px to the TextField widget then you can use the below code example.
TextField(
decoration: InputDecoration(
contentPadding: EdgeInsets.all(15.0),
hintText: 'Placeholder Text...',
),
),
0 Comments