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

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