Commit bf33f1fc authored by Hixie's avatar Hixie

Make center part of toolbar optional.

parent 571a92ce
...@@ -52,7 +52,7 @@ class ToolBar extends Component { ...@@ -52,7 +52,7 @@ class ToolBar extends Component {
children.add( children.add(
new Flexible( new Flexible(
child: new Padding( 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) padding: new EdgeDims.only(left: 24.0)
) )
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment