Commit 7711b1f6 authored by Adam Barth's avatar Adam Barth

Merge pull request #2879 from abarth/sized_box_docs

Improve docs for SizedBox
parents 98b1f19d bafd2c20
......@@ -560,8 +560,13 @@ class CustomMultiChildLayout extends MultiChildRenderObjectWidget {
/// A box with a specified size.
///
/// Forces its child to have a specific width and/or height and sizes itself to
/// match the size of its child.
/// If given a child, this widget forces its child to have a specific width
/// and/or height (assuming values are permitted by this widget's parent). If
/// 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.
class SizedBox extends SingleChildRenderObjectWidget {
SizedBox({ Key key, this.width, this.height, Widget child })
: super(key: key, child: child);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment