Answers for "textformfield flutter text size"

C#
1

how to decrease the height of textform feild in flutter

Widget _buildTextField() {
  final maxLines = 5;

  return Container(
    margin: EdgeInsets.all(12),
    height: maxLines * 24.0,
    child: TextField(
      maxLines: maxLines,
      decoration: InputDecoration(
        hintText: "Enter a message",
        fillColor: Colors.grey[300],
        filled: true,
      ),
    ),
  );
}
Posted by: Guest on September-01-2020
1

dynamically increase the size of textfield as user types flutter

set the maxLines property of TextField to null. maxLines: null
Posted by: Guest on May-04-2020

Code answers related to "textformfield flutter text size"

C# Answers by Framework

Browse Popular Code Answers by Language