Validator error message changes TextFormField’s height. In your Code – you need to comment out the 40 height given to each container.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Container( // height: 40.0, child: _createTextFormField( loginEmailController, Icons.alternate_email, "Email Adress", false, TextInputType.emailAddress), ), Container( // height: 40.0, child: _createTextFormField(loginPasswordController, Icons.lock, "Password", true, TextInputType.text), ), |
and then in your – TextFormField in InputDecoration, you can alter these value as per your liking.
1 2 |
contentPadding: EdgeInsets.symmetric(vertical: 10.0, horizontal: 10.0), |
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.