diff --git a/packages/flutter/lib/src/rendering/view.dart b/packages/flutter/lib/src/rendering/view.dart index 97e42946d3..b2b363a91b 100644 --- a/packages/flutter/lib/src/rendering/view.dart +++ b/packages/flutter/lib/src/rendering/view.dart @@ -24,7 +24,6 @@ class ViewConfiguration { const ViewConfiguration({ this.size: Size.zero, this.devicePixelRatio: 1.0, - this.orientation }); /// The size of the output surface. @@ -33,9 +32,6 @@ class ViewConfiguration { /// The pixel density of the output surface. final double devicePixelRatio; - /// The orientation of the output surface (aspirational). - final int orientation; - /// Creates a transformation matrix that applies the [devicePixelRatio]. Matrix4 toMatrix() { return new Matrix4.diagonal3Values(devicePixelRatio, devicePixelRatio, 1.0); @@ -58,24 +54,16 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin /// The [configuration] must not be null. RenderView({ RenderBox child, - this.timeForRotation: const Duration(microseconds: 83333), @required ViewConfiguration configuration, }) : assert(configuration != null), _configuration = configuration { this.child = child; } - /// The amount of time the screen rotation animation should last (aspirational). - Duration timeForRotation; - /// The current layout size of the view. Size get size => _size; Size _size = Size.zero; - /// The current orientation of the view (aspirational). - int get orientation => _orientation; - int _orientation; // 0..3 - /// The constraints used for the root layout. ViewConfiguration get configuration => _configuration; ViewConfiguration _configuration; @@ -130,11 +118,6 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin @override void performLayout() { assert(_rootTransform != null); - if (configuration.orientation != _orientation) { - if (_orientation != null && child != null) - child.rotate(oldAngle: _orientation, newAngle: configuration.orientation, time: timeForRotation); - _orientation = configuration.orientation; - } _size = configuration.size; assert(_size.isFinite);