I have this widget:
TextFormField(
controller: _activityName,
autocorrect: true,
textAlign: TextAlign.start,
decoration: InputDecoration(
contentPadding = EdgeInsets.zero,
border: UnderlineInputBorder(
),
hintText: ""),
maxLines: 1,
cursorColor: Colors.white,
),
As you can see I explicitly set the padding to be 0, as this answer said: How do I remove content padding from TextField?
But the result I get is this:
As you can see under the Text MyActivity there is a lot of padding, but I can't get rid of it. It looks like a bug, but I'm not sure:
This is the flutter doctor:
Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.18362.295], locale en-US)
• Flutter version 1.12.13+hotfix.5 %Flutter path%
• Framework revision 27321ebbad (3 weeks ago), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0