What is the Text widget?
Why Interviewers Ask This
This is a classic screening question for Flutter roles. Hiring managers ask it early in interviews to gauge your baseline understanding and determine if you can communicate technical concepts clearly.
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).
Pro Tip
If you're unsure about a detail, say so honestly and explain your reasoning. Interviewers respect candidates who can think through uncertainty rather than bluffing.