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

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

Issue 1161323004: Export Point, Size, Rect, Color, Paint, Path, BoxDecoration, Border, BorderSide, EdgeDims, and Flex… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: without analyser changes 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
« no previous file with comments | « sky/sdk/lib/framework/app.dart ('k') | sky/sdk/lib/framework/components2/fixed_height_scrollable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c23ec7d091013d6bca7af9393bfe959eb2a5d2fd..6918e6107c079331023764d33dfa65ee2d98c9c1 100644
--- a/sky/sdk/lib/framework/components2/drawer.dart
+++ b/sky/sdk/lib/framework/components2/drawer.dart
@@ -5,7 +5,6 @@
import '../animation/animated_value.dart';
import '../animation/curves.dart';
import '../fn2.dart';
-import '../rendering/box.dart';
import '../theme/colors.dart';
import 'animated_component.dart';
import 'dart:math' as math;
@@ -111,11 +110,11 @@ class Drawer extends AnimatedComponent {
Matrix4 transform = new Matrix4.identity();
transform.translate(_position);
- sky.Color maskColor = new sky.Color(((_position / _kWidth + 1) * 0xFF).floor() << 24);
+ Color maskColor = new Color(((_position / _kWidth + 1) * 0xFF).floor() << 24);
var mask = new EventListenerNode(
new Container(
- desiredSize: sky.Size.infinite,
+ desiredSize: Size.infinite,
decoration: new BoxDecoration(backgroundColor: maskColor)
),
onGestureTap: controller.handleMaskTap,
@@ -124,8 +123,8 @@ class Drawer extends AnimatedComponent {
Material content = new Material(
content: new Container(
- decoration: new BoxDecoration(backgroundColor: new sky.Color(0xFFFFFFFF)),
- desiredSize: new sky.Size.fromWidth(_kWidth),
+ decoration: new BoxDecoration(backgroundColor: new Color(0xFFFFFFFF)),
+ desiredSize: new Size.fromWidth(_kWidth),
transform: transform,
child: new BlockContainer(children: children)
),
« no previous file with comments | « sky/sdk/lib/framework/app.dart ('k') | sky/sdk/lib/framework/components2/fixed_height_scrollable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698