📱 Flutter
Beginner
What is the Text widget?
Answer
The Text widget displays a string of text on the screen. You can style it using the style property with a TextStyle object, which controls font size, color, weight, letter spacing, and more. For multiple styles in a single line, use RichText with TextSpan children. The overflow property controls what happens when the text is too long (e.g., ellipsis, clip, fade).