Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Unified Diff: sky/sdk/lib/framework/components2/drawer.dart

Issue 1166203002: Rename Container's desiredSize argument to width and height arguments. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/sdk/lib/framework/components2/drawer.dart
diff --git a/sky/sdk/lib/framework/components2/drawer.dart b/sky/sdk/lib/framework/components2/drawer.dart
index 6918e6107c079331023764d33dfa65ee2d98c9c1..02fa5a5f391a916986777a35b36a0822af500d6c 100644
--- a/sky/sdk/lib/framework/components2/drawer.dart
+++ b/sky/sdk/lib/framework/components2/drawer.dart
@@ -113,10 +113,7 @@ class Drawer extends AnimatedComponent {
Color maskColor = new Color(((_position / _kWidth + 1) * 0xFF).floor() << 24);
var mask = new EventListenerNode(
- new Container(
- desiredSize: Size.infinite,
- decoration: new BoxDecoration(backgroundColor: maskColor)
- ),
+ new Container(decoration: new BoxDecoration(backgroundColor: maskColor)),
onGestureTap: controller.handleMaskTap,
onGestureFlingStart: controller.handleFlingStart
);
@@ -124,7 +121,7 @@ class Drawer extends AnimatedComponent {
Material content = new Material(
content: new Container(
decoration: new BoxDecoration(backgroundColor: new Color(0xFFFFFFFF)),
- desiredSize: new Size.fromWidth(_kWidth),
+ width: _kWidth,
transform: transform,
child: new BlockContainer(children: children)
),
« no previous file with comments | « sky/sdk/lib/framework/components2/checkbox.dart ('k') | sky/sdk/lib/framework/components2/drawer_header.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698