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

Unified Diff: sky/examples/fn/widgets/toolbar.dart

Issue 971183002: Initial commit of Effen reactive framework experiment for Sky (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/examples/fn/widgets/radio.dart ('k') | sky/examples/fn/widgets/widgets.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/fn/widgets/toolbar.dart
diff --git a/sky/examples/fn/widgets/toolbar.dart b/sky/examples/fn/widgets/toolbar.dart
new file mode 100644
index 0000000000000000000000000000000000000000..72cbcdf9e91ba8413c1d2c9e0e21f8bef7d43d33
--- /dev/null
+++ b/sky/examples/fn/widgets/toolbar.dart
@@ -0,0 +1,25 @@
+part of widgets;
+
+class Toolbar extends Component {
+
+ List<Node> children;
+
+ static Style _style = new Style('''
+ display: flex;
+ align-items: center;
+ height: 84px;
+ z-index: 1;
+ background-color: #3F51B5;
+ color: white;
+ box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);'''
+ );
+
+ Toolbar({String key, this.children}) : super(key: key);
+
+ Node render() {
+ return new Container(
+ style: _style,
+ children: children
+ );
+ }
+}
« no previous file with comments | « sky/examples/fn/widgets/radio.dart ('k') | sky/examples/fn/widgets/widgets.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698