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.
This commit is contained in:
Hixie
2015-06-25 17:27:43 -07:00
parent 136ae18aa3
commit 0e3f0b30da
2 changed files with 1 additions and 4 deletions

View File

@@ -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

View File

@@ -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';