filmov
tv
Fast Flutter Tutorial, Lesson 6: Text Widget
Показать описание
Hello my dear friends, Welcome to the SpinorApps channel.
In this video, I'm going to talk about the Text widget and its most important properties in flutter.
The Text widget displays a string of text with single style. The string might break across multiple lines or might all be displayed on the same line depending on the layout constraints.
The following are the essential properties of the Text widget:
TextAlign: It is used to specify how our text is aligned horizontally. It also controls the text location.
TextDirection: It is used to determine how textAlign values control the layout of our text. Usually, we write text from left to right, but we can change it using this parameter.
MaxLines: It is used to determine the maximum number of lines displayed in the text widget.
Style: It is the most common property of this widget that allows developers to styling their text. It can do styling by specifying the foreground and background color, font size, font weight, letter and word spacing, locale, shadows, etc.
In this video, I'm going to talk about the Text widget and its most important properties in flutter.
The Text widget displays a string of text with single style. The string might break across multiple lines or might all be displayed on the same line depending on the layout constraints.
The following are the essential properties of the Text widget:
TextAlign: It is used to specify how our text is aligned horizontally. It also controls the text location.
TextDirection: It is used to determine how textAlign values control the layout of our text. Usually, we write text from left to right, but we can change it using this parameter.
MaxLines: It is used to determine the maximum number of lines displayed in the text widget.
Style: It is the most common property of this widget that allows developers to styling their text. It can do styling by specifying the foreground and background color, font size, font weight, letter and word spacing, locale, shadows, etc.