Labs ICT
⭐ Pro Login

Row and Column

Laying out widgets side by side or stacked.

1 min read | Flutter Tutorial
⭐

Want the full learning experience?

Get structured courses, certificates, projects, and instructor support with LabsICT Pro.

Explore Pro Courses

Row and Column in Flutter

Row places children horizontally, and Column stacks them vertically. Think of Row like a shelf with items side by side, and Column like a stack of books. You can control how children are aligned using mainAxisAlignment and crossAxisAlignment.

Row(
  mainAxisAlignment: MainAxisAlignment.center,
  children: [
    Icon(Icons.star),
    Icon(Icons.star),
    Icon(Icons.star),
  ],
)

Column(
  crossAxisAlignment: CrossAxisAlignment.start,
  children: [
    Text('First item'),
    Text('Second item'),
    Text('Third item'),
  ],
)