Make center part of toolbar optional.

This commit is contained in:
Hixie
2015-07-22 15:57:39 -07:00
parent 571a92ce3b
commit bf33f1fcc6

View File

@@ -52,7 +52,7 @@ class ToolBar extends Component {
children.add(
new Flexible(
child: new Padding(
child: new DefaultTextStyle(child: center, style: centerStyle),
child: center != null ? new DefaultTextStyle(child: center, style: centerStyle) : null,
padding: new EdgeDims.only(left: 24.0)
)
)