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.
SubscribeRelated
ConstrainedBoxUnconstrainedBoxFractionallySizedBoxAspectRatioFittedBoxCenterAlign