flutter/examples/fn/widgets/toolbar.dart
Rafael Weinstein 202f99d71d Initial commit of Effen reactive framework experiment for Sky
This is just a proof of concept. If we like this direction, it will move out of the examples directory (likely re-written) and be committed in smaller pieces with unit tests and formal reviews.

TBR=abarth
BUG=

Review URL: https://codereview.chromium.org/971183002
2015-03-02 20:55:02 -08:00

26 lines
485 B
Dart

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
);
}
}