From 0421b4f37b8c31101e0af64918a39df306d97fcd Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 2 Mar 2017 11:25:55 -0800 Subject: [PATCH] Improve docs for Center (#8522) Fixes #8478 --- packages/flutter/lib/src/widgets/basic.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index 267a785b4c..d3c9d8d6b9 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -710,6 +710,14 @@ class Align extends SingleChildRenderObjectWidget { /// A widget that centers its child within itself. /// +/// This widget will be as big as possible if its dimensions are constrained and +/// [widthFactor] and [heightFactor] are null. If a dimension is unconstrained +/// and the corresponding size factor is null then the widget will match its +/// child's size in that dimension. If a size factor is non-null then the +/// corresponding dimension of this widget will be the product of the child's +/// dimension and the size factor. For example if widthFactor is 2.0 then +/// the width of this widget will always be twice its child's width. +/// /// See also: /// /// * [Align], which lets you arbitrarily position a child within itself,