Back to results for “Column”
Flutter › Layout Widgets (Row, Column, Stack, Container)

What are Row and Column, and how do they let you arrange several separate child widgets either horizontally or vertically alongside one another?

Beginner

Answer

Row arranges its own child widgets in a genuine horizontal line running from left to right, while Column arranges its own children in a genuine vertical line running from top to bottom, and both are among the genuinely most fundamental, commonly used layout widgets throughout essentially any Flutter app, letting you compose together several separate individual smaller widgets into a properly organized larger combined layout simply by placing them together as children within one of these two particular widgets.
Row(
  children: [Icon(Icons.star), Text('Rating: 4.5')],
)
Real-world example A product rating display arranges a star icon directly alongside its corresponding rating text using a simple Row, achieving a clean, properly aligned horizontal layout with just a genuinely small handful of straightforward lines of code.

Common follow-ups: What genuinely happens if a Row's own combined children happen to be wider than the actual available horizontal screen space?;What is the specific practical difference between mainAxisAlignment and crossAxisAlignment on a Row?