How to change TextField Background Color in Flutter

The TextField widget is one of the most used widgets in Flutter. Hence, proper styling of the TextField is important. In this blog post, let’s learn how to set the background color for TextField in Flutter. We can customize the looks of TextField using its decoration property and the InputDecoration class. In order to change…

How to Align TextField HintText to Center in Flutter

The importance of TextField in a mobile app doesn’t need any explanation. In this blog post, let’s learn how to align TextField to center in Flutter. You can add hint text using InputDecoration class. In order to align hint text you have to make use of the Textfield property textAlign and the TextAlign class. See…

How to change TextField Focus Border Color in Flutter

TextField is a very important widget in Flutter. Showing borders around TextField make it distinct and beautiful. In this tutorial, let’s learn how to change the TextField border color when it is focused. You can add borders to the TextField using the InputDecoration class. The focusedBorder property of the OutlineInputBorder class can be used to…