Make the buttons on home.dart fill the screen width again

R=ianh@google.com

Review URL: https://codereview.chromium.org/1197203004.
This commit is contained in:
Eric Seidel
2015-06-22 17:13:47 -07:00
parent 45c57ada22
commit 6e87bac4c5

View File

@@ -38,9 +38,13 @@ class SkyDemo extends Component {
}
UINode build() {
return new RaisedButton(
child: new Text(text),
onPressed: _handlePress
return new ConstrainedBox(
// TOOD(ianh): Fix so we don't need INFINITY here.
constraints: new BoxConstraints.tightFor(width: double.INFINITY),
child: new RaisedButton(
child: new Text(text),
onPressed: _handlePress
)
);
}
}