Update the Align docs

They were out-of-date.

Fixes #1391
This commit is contained in:
Adam Barth
2016-01-31 23:06:34 -08:00
parent a08c201996
commit fade43ee55
2 changed files with 7 additions and 2 deletions

View File

@@ -211,7 +211,7 @@ class RenderPadding extends RenderShiftedBox {
///
/// For example, to align a box at the bottom right, you would pass this box a
/// tight constraint that is bigger than the child's natural size,
/// with the alignment set to (1.0, 1.0).
/// with an alignment of [const FractionalOffset(1.0, 1.0)].
///
/// By default, sizes to be as big as possible in both axes. If either axis is
/// unconstrained, then in that direction it will be sized to fit the child's

View File

@@ -359,7 +359,12 @@ class Padding extends OneChildRenderObjectWidget {
///
/// For example, to align a box at the bottom right, you would pass this box a
/// tight constraint that is bigger than the child's natural size,
/// with horizontal and vertical set to 1.0.
/// with an alignment of [const FractionalOffset(1.0, 1.0)].
///
/// By default, sizes to be as big as possible in both axes. If either axis is
/// unconstrained, then in that direction it will be sized to fit the child's
/// dimensions. Using widthFactor and heightFactor you can force this latter
/// behaviour in all cases.
class Align extends OneChildRenderObjectWidget {
Align({
Key key,