Skip to content
masterclass Buddy

Flutter & Dart · Component

Expanded

Expanded makes a child of Row, Column, or Flex fill available space along the parent’s main axis. Multiple Expanded children divide that space according to their flex values.

Last updated

Syntax

const Expanded({Key? key, int flex = 1, required Widget child})

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

Subscribe
  • Flexible
  • Spacer
  • Row
  • Column
  • Flex
  • FlexParentData

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