forked from firka/flutter
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:
@@ -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
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user