From ef1e64124dc9e2b3b14ce7fc48e72be13cb05119 Mon Sep 17 00:00:00 2001 From: LongCatIsLooong <31859944+LongCatIsLooong@users.noreply.github.com> Date: Fri, 14 Jun 2019 09:18:40 -0700 Subject: [PATCH] SizedBox documentation (#34424) --- packages/flutter/lib/src/widgets/basic.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index 724603ddef..a786091c3a 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -1940,8 +1940,9 @@ class CustomMultiChildLayout extends MultiChildRenderObjectWidget { /// either the width or height is null, this widget will size itself to match /// the child's size in that dimension. /// -/// If not given a child, this widget will size itself to the given width and -/// height, treating nulls as zero. +/// If not given a child, [SizedBox] will try to size itself as close to the +/// specified height and width as possible given the parent's constraints. If +/// [height] or [width] is null or unspecified, it will be treated as zero. /// /// The [new SizedBox.expand] constructor can be used to make a [SizedBox] that /// sizes itself to fit the parent. It is equivalent to setting [width] and