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

Unified Diff: sky/framework/components/drawer_header.dart

Issue 993033003: Move example fn widgets into sky/framework/components (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/framework/components/drawer.dart ('k') | sky/framework/components/fixed_height_scrollable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/drawer_header.dart
diff --git a/sky/examples/fn/widgets/drawerheader.dart b/sky/framework/components/drawer_header.dart
similarity index 68%
rename from sky/examples/fn/widgets/drawerheader.dart
rename to sky/framework/components/drawer_header.dart
index 052dad5120abe87c78cae3978d9786285baebdf7..91bb2cf6d0c2ae112501de293acbca672c52968c 100644
--- a/sky/examples/fn/widgets/drawerheader.dart
+++ b/sky/framework/components/drawer_header.dart
@@ -1,8 +1,12 @@
-part of widgets;
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
-class DrawerHeader extends Component {
+import '../fn.dart';
+import '../theme/colors.dart';
- static Style _style = new Style('''
+class DrawerHeader extends Component {
+ static final Style _style = new Style('''
display: flex;
flex-direction: column;
height: 140px;
@@ -13,11 +17,11 @@ class DrawerHeader extends Component {
margin-bottom: 8px;'''
);
- static Style _spacerStyle = new Style('''
+ static final Style _spacerStyle = new Style('''
flex: 1'''
);
- static Style _labelStyle = new Style('''
+ static final Style _labelStyle = new Style('''
padding: 0 16px;
font-family: 'Roboto Medium', 'Helvetica';
color: #212121;'''
« no previous file with comments | « sky/framework/components/drawer.dart ('k') | sky/framework/components/fixed_height_scrollable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698