@@ -1982,13 +1982,6 @@ class Padding extends SingleChildRenderObjectWidget {
1982
1982
/// dimension and the size factor. For example if widthFactor is 2.0 then
1983
1983
/// the width of this widget will always be twice its child's width.
1984
1984
///
1985
- /// ## How it works
1986
- ///
1987
- /// The [alignment] property describes a point in the `child` 's coordinate system
1988
- /// and a different point in the coordinate system of this widget. The [Align]
1989
- /// widget positions the `child` such that both points are lined up on top of
1990
- /// each other.
1991
- ///
1992
1985
/// {@tool snippet}
1993
1986
/// The [Align] widget in this example uses one of the defined constants from
1994
1987
/// [Alignment] , [Alignment.topRight] . This places the [FlutterLogo] in the top
@@ -2013,15 +2006,27 @@ class Padding extends SingleChildRenderObjectWidget {
2013
2006
/// ```
2014
2007
/// {@end-tool}
2015
2008
///
2009
+ /// ## How it works
2010
+ ///
2011
+ /// The [alignment] property describes a point in the `child` 's coordinate system
2012
+ /// and a different point in the coordinate system of this widget. The [Align]
2013
+ /// widget positions the `child` such that both points are lined up on top of
2014
+ /// each other.
2015
+ ///
2016
2016
/// {@tool snippet}
2017
- /// The [Alignment] used in the following example defines a single point :
2017
+ /// The [Alignment] used in the following example defines two points :
2018
2018
///
2019
2019
/// * (0.2 * width of [FlutterLogo] /2 + width of [FlutterLogo] /2, 0.6 * height
2020
- /// of [FlutterLogo] /2 + height of [FlutterLogo] /2) = (36.0, 48.0).
2020
+ /// of [FlutterLogo]/2 + height of [FlutterLogo]/2) = (36.0, 48.0) in the
2021
+ /// coordinate system of the [FlutterLogo].
2022
+ /// * (0.2 * width of [Align] /2 + width of [Align] /2, 0.6 * height
2023
+ /// of [Align]/2 + height of [Align]/2) = (72.0, 96.0) in the
2024
+ /// coordinate system of the [Align] widget (blue area).
2021
2025
///
2022
- /// The [Alignment] class uses a coordinate system with an origin in the center
2023
- /// of the [Container] , as shown with the [Icon] above. [Align] will place the
2024
- /// [FlutterLogo] at (36.0, 48.0) according to this coordinate system.
2026
+ /// The [Align] widget positions the [FlutterLogo] such that the two points are on
2027
+ /// top of each other. In this example, the top left of the [FlutterLogo] will
2028
+ /// be placed at (72.0, 96.0) - (36.0, 48.0) = (36.0, 48.0) from the top left of
2029
+ /// the [Align] widget.
2025
2030
///
2026
2031
/// ![A blue square container with the Flutter logo positioned according to the
2027
2032
/// Alignment specified above. A point is marked at the center of the container
@@ -2048,9 +2053,9 @@ class Padding extends SingleChildRenderObjectWidget {
2048
2053
/// The [FractionalOffset] used in the following example defines two points:
2049
2054
///
2050
2055
/// * (0.2 * width of [FlutterLogo] , 0.6 * height of [FlutterLogo] ) = (12.0, 36.0)
2051
- /// in the coordinate system of the blue container .
2056
+ /// in the coordinate system of the [FlutterLogo] .
2052
2057
/// * (0.2 * width of [Align] , 0.6 * height of [Align] ) = (24.0, 72.0) in the
2053
- /// coordinate system of the [Align] widget.
2058
+ /// coordinate system of the [Align] widget (blue area) .
2054
2059
///
2055
2060
/// The [Align] widget positions the [FlutterLogo] such that the two points are on
2056
2061
/// top of each other. In this example, the top left of the [FlutterLogo] will
0 commit comments