Want to update flutter TextField’s height and width? Use the margin property in the Container. Wrap the textfield inside a container and adjust the margin property.
1 2 3 4 5 6 7 8 | new Container( margin: const EdgeInsets.only(right: 10, left: 10), child: new TextField( decoration: new InputDecoration( hintText: 'username', icon: new Icon(Icons.person)), )), |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.