Skip to content
masterclass Buddy

Flutter & Dart · Component

Row

Row places child widgets in a horizontal line. Use Expanded or Flexible to share remaining width, and use ListView when the line must scroll.

Last updated

Syntax

Row({ Key? key, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, TextDirection? textDirection, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline? textBaseline, double spacing = 0.0, List<Widget> children = const <Widget>[] })

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Column
  • Expanded
  • Flexible
  • Flex
  • ListView
  • Spacer
  • Align
  • Center

Source: Row class - widgets library - Dart API. Checked 2026-11-03.