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