Skip to content
masterclass Buddy

Flutter & Dart · Component

SizedBox

SizedBox requests a specific width and height for a box and its child. The parent’s constraints still decide the final size.

Last updated

Syntax

const SizedBox({Key? key, double? width, double? height, Widget? child})

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

Subscribe
  • ConstrainedBox
  • UnconstrainedBox
  • FractionallySizedBox
  • AspectRatio
  • FittedBox
  • Center
  • Align

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