Merge pull request #1703 from abarth/improve_comment

Improve comments describing FractionalOffset
This commit is contained in:
Adam Barth 2015-10-20 16:16:31 -07:00
commit 82e0516a5d

View File

@ -740,8 +740,8 @@ abstract class RenderBoxContainerDefaultsMixin<ChildType extends RenderBox, Pare
/// An offset that's expressed as a fraction of a Size.
///
/// FractionalOffset(0.0, 0.0) represents the top left of the Size,
/// FractionalOffset(1.0, 1.0) represents the bottom right of the Size.
/// FractionalOffset(1.0, 0.0) represents the top right of the Size,
/// FractionalOffset(0.0, 1.0) represents the bottom left of the Size,
class FractionalOffset {
const FractionalOffset(this.x, this.y);
final double x;