Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Unified Diff: sky/home.dart

Issue 1197203004: Make the buttons on home.dart fill the screen width again (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/home.dart
diff --git a/sky/home.dart b/sky/home.dart
index 228042fe8315ec6898d15cd494350ba193c592c0..f566305722a0f5db988ac79a54c2e17869c3bcf5 100644
--- a/sky/home.dart
+++ b/sky/home.dart
@@ -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
+ )
);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698