| Index: sky/sdk/lib/widgets/basic.dart
|
| diff --git a/sky/sdk/lib/widgets/basic.dart b/sky/sdk/lib/widgets/basic.dart
|
| index 85f33f51061ca80adfaf6a156fb5f708c2ba0f90..8832969f2d0c2a622d9b60e673b0f438dc82f01f 100644
|
| --- a/sky/sdk/lib/widgets/basic.dart
|
| +++ b/sky/sdk/lib/widgets/basic.dart
|
| @@ -217,6 +217,21 @@ class ConstrainedBox extends OneChildRenderObjectWrapper {
|
| }
|
| }
|
|
|
| +class AspectRatio extends OneChildRenderObjectWrapper {
|
| + AspectRatio({ String key, this.aspectRatio, Widget child })
|
| + : super(key: key, child: child);
|
| +
|
| + final double aspectRatio;
|
| +
|
| + RenderAspectRatio createNode() => new RenderAspectRatio(aspectRatio: aspectRatio);
|
| + RenderAspectRatio get root => super.root;
|
| +
|
| + void syncRenderObject(AspectRatio old) {
|
| + super.syncRenderObject(old);
|
| + root.aspectRatio = aspectRatio;
|
| + }
|
| +}
|
| +
|
| class ShrinkWrapWidth extends OneChildRenderObjectWrapper {
|
| ShrinkWrapWidth({ String key, this.stepWidth, this.stepHeight, Widget child })
|
| : super(key: key, child: child);
|
|
|