How to change Selection Color of Text in Flutter

The Text in Flutter is not selectable by default. So you have to choose the SelectableText widget to make the text selectable. In this Flutter tutorial, let’s check how to change the selection color of the text. The SelectableText widget can be used for single-style text whereas SelectableText.rich constructor should be used for text with…

How to change Text Background Color in Flutter

As a mobile app developer, you may always want to style text properly to make the user interface elegant. In this Flutter tutorial, let’s learn how to set text background color easily. Normally, we don’t play with the text background color. But in scenarios like highlighting text, having a bright background color is helpful. The…

How to show Text in Lowercase in Flutter

Sometimes, you may want to show text always in a specific case- lowercase or uppercase. In this short Flutter tutorial, let’s learn how to display Text always in lowercase. The Text widget doesn’t have any property related to capitalization. Hence, we should use Dart method toLowerCase() to obtain the desired result. See the code snippet…