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

54px on small screens: http://www.google.com/design/spec/layout/metrics-keylines.html#metrics-keylines-keylines-spacing TBR=abarth@chromium.org Review URL: https://codereview.chromium.org/995133002
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: 56px;
|
|
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
|
|
);
|
|
}
|
|
}
|