How to Capitalize TextField Content in Flutter

TextField is a very important widget that helps users to input text. Sometimes you may want the case of the TextField text specific. In this Flutter tutorial, let’s check how to capitalize the content of TextField. It’s quite simple. You can use TextCapitalization class to capitalize input text. With the help of textCapitalization property of … Read more

How to Disable TextField in Flutter

disable textfield

Even though rare, you may want to disable your TextInput widget in some scenarios. In this Flutter tutorial, let’s check how to disable TextField. Disabling TextField is very easy. TextField has a property named enabled. Just make the enabled prop false to disable the TextField. See the code snippet given below. Following is the output. … Read more

How to Make TextField Read Only in Flutter

flutter textfield read only

I already have a blog post on how to disable Flutter TextField. In this tutorial, let’s learn how to make TextField read-only in Flutter. You might be thinking what’s the difference between disabling and making read-only? When the TextField is made read-only then you cannot change the text but you can select the text. The … Read more

How to Change TextField Border Color in Flutter

inputoutlineborder color flutter

I already have a blog post on how to add borders to TextField using OutlineInputBorder class. In this blog post, let’s check how to change the default color of TextField border in Flutter. You can change the border color of your TextField using InputDecoration class, OutlineInputBorder class, and BorderSide class. See the code snippet given … Read more

How to Add Borders to TextField in Flutter

flutter textfield border

Every Flutter developer knows the importance of the TextField widget. Having borders around TextField can make the component significant. In this tutorial, let’s learn how to set borders for TextField in Flutter. By default, TextField doesn’t have any borders. You can style TextField using the InputDecoration class. The OutlineInputBorder class helps you to add borders … Read more

How to Add Icon inside TextField in Flutter

flutter textfield icon

TextField is a very important widget in Flutter. Having an icon inside TextField can help users to identify the content to enter in it. Let’s see how to add an icon inside the TextField in Flutter. The InputDecoration class helps you to style the TextField. Its icon property allows you to add an icon in … Read more

How to Remove TextField Underline in Flutter

flutter textfield remove underline

By default, the TextField widget of Flutter has an underline. Sometimes, you may want to get rid of this line. In this Flutter tutorial, let’s check how to remove underlining in TextField. You can remove the underline by using InputBorder class as given below. Following is the complete code for reference. That’s how you remove … Read more

How to Change Placeholder Text Style of TextField in Flutter

flutter hint text style

The TextField is a very important widget that helps users to input text. Sometimes you may want to change the default placeholder style of TextField. In this Flutter tutorial, let’s check how to change the hintText style of the TextField widget. Changing the hintText style is quite simple. You just need to use InputDecoration’s property … Read more

How to Add TextField with Multi-Line Support in Flutter

flutter textfield with multiline

By default, a TextField widget is limited to a single line. But in case your users need to input large text then the TextField should be extensible. In this Flutter tutorial, let’s check how to add multi-line support to the TextField widget. You add multiple lines to the TextField by using the property maxLines. There … Read more