What is the Row widget?
Why Interviewers Ask This
Interviewers use this question to quickly assess whether a candidate has the foundational knowledge required for Flutter development. It reveals whether you understand the building blocks that more complex concepts rely on.
Answer
The Row widget arranges its child widgets horizontally from left to right. Its main axis is horizontal and the cross axis is vertical. Like Column, it supports mainAxisAlignment and crossAxisAlignment for controlling how children are positioned and spaced. If children overflow the screen width, Flutter will show a yellow-striped overflow error — use Flexible or Expanded inside a Row to prevent this.
Common Mistake
Candidates often give textbook answers here. Interviewers are more impressed when you relate the concept to a specific problem you solved in a real Flutter project.