From 0e3f0b30dab1cb6d195e1675986e64d2a6f0f96f Mon Sep 17 00:00:00 2001 From: Hixie Date: Thu, 25 Jun 2015 17:27:43 -0700 Subject: [PATCH] Let's hide double.INFINITY a bit more, by providing cleaner APIs for the cases where we're currently trying to use it. R=abarth@chromium.org Review URL: https://codereview.chromium.org/1209233002. --- engine/src/flutter/home.dart | 3 +-- engine/src/flutter/tests/widgets/syncs1.dart | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/engine/src/flutter/home.dart b/engine/src/flutter/home.dart index 767027a953..a5a282ca03 100644 --- a/engine/src/flutter/home.dart +++ b/engine/src/flutter/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 diff --git a/engine/src/flutter/tests/widgets/syncs1.dart b/engine/src/flutter/tests/widgets/syncs1.dart index f1e33c5c4d..0fa9991193 100644 --- a/engine/src/flutter/tests/widgets/syncs1.dart +++ b/engine/src/flutter/tests/widgets/syncs1.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'dart:async'; - import 'package:sky/widgets/basic.dart'; import 'package:sky/widgets/raised_button.dart';