You can set the width of a TextField exactly as you want by wrapping it inside a Container, a SizedBox, or a ContrainedBox widget . Note that the height of the parent widget will not affect the height of the text field inside it.
How do you set the width in Flutter?
You can set the width of a TextField exactly as you want by wrapping it inside a Container, a SizedBox, or a ContrainedBox widget . Note that the height of the parent widget will not affect the height of the text field inside it.