mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

"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
26 lines
455 B
Dart
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
|
|
);
|
|
}
|
|
}
|