Flutter: A guide on Text Widget

ANEESH JOSE
Flutter Community
Published in
5 min readMar 19, 2021

--

Text Widget displays String objects in the screen. This article intends to discuss various properties of the Text widget. You can find the official documentation here. I will try to explain the properties a little more in addition to the documentation in this article.

A sample of basic Text widget is as follows:

textAlign: Flutter facilitates the alignment of text horizontally inside its parent widget’s boundary using textAlign property.

TextAlign comes with 7 different constants. start, end, left, right, center, justify and values.

TextAlign.start places the text in the leading end of the parent widget’s boundaries. The text is placed either left or right according to the textDirection property. If the textDirection is ltr , the text will be aligned left. This is default text direction…

--

--

ANEESH JOSE
Flutter Community

Flutter enthusiast | Dart | Android app Developer | Web | Firebase | Node