Make center part of toolbar optional.
This commit is contained in:
@@ -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)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user