How to vertically center differently-sized hintText in TextField?
Use the following code to vertically center differently-sized hintText in TextField.
1 2 3 4 5 6 |
TextField( decoration: InputDecoration( hintText: 'Hint Text', contentPadding: EdgeInsets.all(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.