SizedBox documentation (#34424)

This commit is contained in:
LongCatIsLooong 2019-06-14 09:18:40 -07:00 committed by GitHub
parent 264de26572
commit ef1e64124d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1940,8 +1940,9 @@ class CustomMultiChildLayout extends MultiChildRenderObjectWidget {
/// either the width or height is null, this widget will size itself to match /// either the width or height is null, this widget will size itself to match
/// the child's size in that dimension. /// the child's size in that dimension.
/// ///
/// If not given a child, this widget will size itself to the given width and /// If not given a child, [SizedBox] will try to size itself as close to the
/// height, treating nulls as zero. /// 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 /// 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 /// sizes itself to fit the parent. It is equivalent to setting [width] and