Container(
padding: EdgeInsets.only(bottom: 150),
margin: EdgeInsets.all(10),
decoration: BoxDecoration(
border: Border.all(width: 2, color: Colors.black),
borderRadius: BorderRadius.all(Radius.circular(10))),
child: TextFormField(
keyboardType: TextInputType.multiline,
maxLines: null,
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.w600,
fontFamily: 'Montserrat'),
decoration: InputDecoration(
border: InputBorder.none,
hintText: 'Task Description...',
hintStyle: TextStyle(
fontFamily: 'Montserrat',
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
fontSize: 20)),
),
)
So, beforehand I made my layout using Container and a Text widget, then I changed it to a TextFormField, but I really wanna stick with my Container's border. But I have this problem when I input a new line, the border/box automatically adjust its height. I don't want that, is there any way to fix this?
Thank you.
