flutter/examples/fn/widgets/toolbar.dart
Rafael Weinstein 409b12e5df Change the name of Component.render to Component.build in Effen.
"Render" is misleading. "Build" may not be the best word either, it's closer to what's actually happening.

R=ojan@chromium.org
TBR=abarth
BUG=

Review URL: https://codereview.chromium.org/992033002
2015-03-09 13:30:13 -07:00

26 lines
455 B
Dart

part of widgets;
class Toolbar extends Component {
List<Node> children;
static final Style _style = new Style('''
display: flex;
align-items: center;
height: 84px;
z-index: 1;
background-color: ${Purple[500]};
color: white;
box-shadow: ${Shadow[2]};'''
);
Toolbar({String key, this.children}) : super(key: key);
Node build() {
return new Container(
style: _style,
children: children
);
}
}