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

Unified Diff: sky/home.dart

Issue 1209233002: Let's hide double.INFINITY a bit more, by providing cleaner APIs for the cases where we're currentl… (Closed) Base URL: https://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 | « sky/examples/widgets/styled_text.dart ('k') | sky/sdk/lib/rendering/block.dart » ('j') | 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 767027a95394a9bd7c7e4f89d104740e7c4fc0e7..a5a282ca035c8b76dd0816b4c6105190e2043f20 100644
--- a/sky/home.dart
+++ b/sky/home.dart
@@ -39,8 +39,7 @@ class SkyDemo extends Component {
Widget build() {
return new ConstrainedBox(
- // TOOD(ianh): Fix so we don't need INFINITY here.
- constraints: new BoxConstraints.tightFor(width: double.INFINITY),
+ constraints: const BoxConstraints.expandWidth(),
child: new RaisedButton(
child: new Text(text),
onPressed: _handlePress
« no previous file with comments | « sky/examples/widgets/styled_text.dart ('k') | sky/sdk/lib/rendering/block.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698