forked from firka/flutter
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:
@@ -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
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user